[074d3d]: / mne / datasets / eegbci / tests / test_eegbci.py

Download this file

16 lines (11 with data), 453 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Authors: The MNE-Python contributors.
# License: BSD-3-Clause
# Copyright the MNE-Python contributors.
from mne.datasets import eegbci
def test_eegbci_download(tmp_path, fake_retrieve):
"""Test Sleep Physionet URL handling."""
subjects = range(1, 5)
for subj in subjects:
fnames = eegbci.load_data(subj, runs=[3], path=tmp_path, update_path=False)
assert len(fnames) == 1, subj
assert fake_retrieve.call_count == 4