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

(Merge to master) fixes to allow for setting a custom data_dir outside of ~/.eegnb/ #282

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

pellet
Copy link
Contributor

@pellet pellet commented Nov 10, 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)

@pellet pellet marked this pull request as ready for review November 10, 2024 05:32
@oreHGA oreHGA merged commit 0d10361 into NeuroTechX:master Nov 21, 2024
4 of 6 checks passed
@pellet pellet deleted the dev/data_dir_fix branch November 22, 2024 22:56
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