# mne.datasets.sleep_physionet.temazepam.fetch_data¶

mne.datasets.sleep_physionet.temazepam.fetch_data(subjects, recording=[b'Placebo', 'temazepam'], path=None, force_update=False, update_path=None, base_url='https://physionet.org/physiobank/database/sleep-edfx/sleep-telemetry/', verbose=None)[source]

Get paths to local copies of PhysioNet Polysomnography dataset files.

This will fetch data from the publicly available subjects from PhysioNet’s study of Temazepam effects on sleep [1]. This corresponds to a set of 22 subjects. Subjects had mild difficulty falling asleep but were otherwise healthy.

See more details in the physionet website.

Parameters
subjects

The subjects to use. Can be in the range of 0-21 (inclusive).

path

Location of where to look for the PhysioNet data storing location. If None, the environment variable or config parameter MNE_DATASETS_PHYSIONET_SLEEP_PATH is used. If it doesn’t exist, the “~/mne_data” directory is used. If the Polysomnography dataset is not found under the given path, the data will be automatically downloaded to the specified folder.

force_updatebool

Force update of the dataset even if a local copy exists.

update_path

If True, set the MNE_DATASETS_EEGBCI_PATH in mne-python config to the given path. If None, the user is prompted.

verbose

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns
pathslist

List of local data paths of the given type.

Notes

For example, one could do:

>>> from mne.datasets import sleep_physionet
>>> sleep_physionet.temazepam.fetch_data(subjects=[1])