|
| 1 | +# Authors: The MNE-Python contributors. |
| 2 | +# License: BSD-3-Clause |
| 3 | +# Copyright the MNE-Python contributors. |
| 4 | + |
| 5 | +"""Curated data subset used by the JupyterLite browser documentation. |
| 6 | +
|
| 7 | +``lite_data`` holds the data files needed to run the tutorials and examples in |
| 8 | +the browser, taken from ``sample``, ``kiloword``, ``erp_core``, ``mtrf`` and |
| 9 | +``eegbci``. The files are unchanged and keep the same checksums as the full |
| 10 | +datasets. It extracts to ``MNE-lite-data/`` with each file under its original |
| 11 | +dataset folder (``MNE-sample-data/``, ``MNE-kiloword-data/``, ...), so paths |
| 12 | +match. |
| 13 | +The ``somato`` dataset is not included, so the somatosensory tutorials and |
| 14 | +examples do not run in the browser. |
| 15 | +""" |
| 16 | + |
| 17 | +from ...utils import verbose |
| 18 | +from ..utils import _data_path_doc, _download_mne_dataset, _get_version, _version_doc |
| 19 | + |
| 20 | + |
| 21 | +@verbose |
| 22 | +def data_path( |
| 23 | + path=None, force_update=False, update_path=True, download=True, *, verbose=None |
| 24 | +): # noqa: D103 |
| 25 | + return _download_mne_dataset( |
| 26 | + name="lite_data", |
| 27 | + processor="untar", |
| 28 | + path=path, |
| 29 | + force_update=force_update, |
| 30 | + update_path=update_path, |
| 31 | + download=download, |
| 32 | + ) |
| 33 | + |
| 34 | + |
| 35 | +data_path.__doc__ = _data_path_doc.format( |
| 36 | + name="lite_data", conf="MNE_DATASETS_LITE_DATA_PATH" |
| 37 | +) |
| 38 | + |
| 39 | + |
| 40 | +def get_version(): # noqa: D103 |
| 41 | + return _get_version("lite_data") |
| 42 | + |
| 43 | + |
| 44 | +get_version.__doc__ = _version_doc.format(name="lite_data") |
0 commit comments