[Mne_analysis] mne-python

Alexandre Gramfort gramfort at nmr.mgh.harvard.edu
Fri Jul 8 18:17:00 EDT 2011
Search archives:

Hi William,

> downloads the sample dataset from MGH. But my question is, if I have already downloaded it, how do I set the path to recognize where it is currently located, rather than having to download it again? It looks like this function comes from the "__init__.py" script in the "mne-python/mne/datasets/sample" directory, but in spite my trying to parse it I still can't seem to figure it out.

you can simply do:

> data_path = sample.data_path('/path/to/data')


> data_path = sample.data_path('..')

like you would do with "cd" on unix.


More information about the Mne_analysis mailing list