Change the default save location

How to change the default save location of sample data downloaded by MNE?
I don’t want this data to be stored in my C drive

You can use MNE’s config system to set this path:

mne.set_config("MNE_DATA", "/path/to/data/location")

This should put all data sets into the desired location. You can also change the path for individual data sets, e.g.

mne.set_config("MNE_DATASETS_SAMPLE_PATH", "/another/path/for/sample")
2 Likes

OK,Thank you very much!