Repository navigation
Allow changing of storage location - #195
Conversation
sylvchev
left a comment
There was a problem hiding this comment.
You need also to modify moabb/datasets/physionet_mi.py that have a specific download process.
| Location of where to look for the data storing location. | ||
| If None, the environment variable or config parameter | ||
| ``MNE_DATASETS_(signifier)_PATH`` is used. If it doesn't exist, the | ||
| "~/mne_data" directory is used. If the dataset |
There was a problem hiding this comment.
You could remove the update_path argument from the function in data_dl.
Usually when you change the signature of a function (the name or number of arguments), this is an API break and require a major update, like going from MOABB v0.3.0 to 1.0.0
Here, it is a special case, as we don't need to consider that API compatibility is broken as I just introduced this function, it is still in "dev branch".
For the data_path function just above, we need to keep the update_pathargument, as the code is released and stable and someone may have use this function. We could not break it without warning.
There was a problem hiding this comment.
Has data_dl only been used in BNCI and SSVEPEXO?
| ) | ||
|
|
||
|
|
||
| def set_download_dir(path): |
There was a problem hiding this comment.
If you create a new function, you will need to create a test, to verify that everything is working well.
I could help you, MOABB uses unitttest which is powerful but a little bit complicated.
|
Everything's good, merging! |
A new storage location can be set by -
moabb.set_download_dir(new_path)The problem was that the config for the new datasets were being set to ~/mne_data even before querying the mne config which is done in mne utils function _get_path in the line -
path = get_config(key, get_config('MNE_DATA'))