mne.datasets.megsim.
data_path
(url, path=None, force_update=False, update_path=None, verbose=None)[source]¶Get path to local copy of MEGSIM dataset URL.
This is a low-level function useful for getting a local copy of a remote MEGSIM dataset [R34].
Parameters: | url : str
path : None | str
force_update : bool
update_path : bool | None
verbose : bool, str, int, or None
|
---|---|
Returns: | path : list of str
|
Notes
For example, one could do:
>>> from mne.datasets import megsim
>>> url = 'http://cobre.mrn.org/megsim/simdata/neuromag/visual/M87174545_vis_sim1A_4mm_30na_neuro_rn.fif'
>>> megsim.data_path(url, os.getenv('HOME') + '/datasets')
And this would download the given MEGSIM data file to the ‘datasets’ folder, and prompt the user to save the ‘datasets’ path to the mne-python config, if it isn’t there already.
References
[R34] | (1, 2) Aine CJ, Sanfratello L, Ranken D, Best E, MacArthur JA, Wallace T, Gilliam K, Donahue CH, Montano R, Bryant JE, Scott A, Stephen JM (2012) MEG-SIM: A Web Portal for Testing MEG Analysis Methods using Realistic Simulated and Empirical Data. Neuroinform 10:141-158 |