Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to allow for custom recording directory outside of ~/.eegnb/ #273

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

pellet
Copy link
Contributor

@pellet pellet commented Sep 7, 2024

As previously discussed in our meeting, I could not save my recordings outside of ~/.eegnb/
This fixes the issue.
Here is an example of how I set my recordings/data directory using an environment variable.
I modify this environment variable depending on the computer I am running the recording or analysis on, I'm saving my data to a private experiments repository which has a different local directory on each computer.

recording

data_dir = path.join(path.expanduser("~/"), getenv('DATA_DIR'), "data")
save_fn = generate_save_fn(eeg_device.device_name, experiment_name, subject_id, session_nb, data_dir)

loading


data_dir = path.join(path.expanduser("~/"), getenv('DATA_DIR'), "data")
raw = load_data(subject,session,
                experiment='visual_n170', site='local', device_name='synthetic',
                data_dir = data_dir)

@JohnGriffiths
Copy link
Collaborator

@pellet good to convert this to a full PR

@pellet pellet marked this pull request as ready for review October 27, 2024 10:45
@JohnGriffiths JohnGriffiths merged commit e71c416 into NeuroTechX:develop Nov 7, 2024
5 of 6 checks passed
JohnGriffiths added a commit that referenced this pull request Nov 7, 2024
JohnGriffiths added a commit that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants