Inconsistent environment variable name for Sleep Physionet dataset
See original GitHub issueThe docstring of mne.datasets.sleep_physionet.age.fetch_data
states the environment variable pointing to the Sleep Physionet dataset should be “MNE_DATASETS_PHYSIONET_SLEEP_PATH”: https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/datasets/sleep_physionet/age.py#L47
However the code looks instead for “PHYSIONET_SLEEP_PATH”: https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/datasets/sleep_physionet/_utils.py#L77
Given that other datasets, e.g. eegbci
use the format “MNE_DATASETS_…_PATH”: https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/datasets/eegbci/eegbci.py#L62 I suppose the code should be changed to what the docstring states?
I just wanted to double check that is correct before submitting a PR. Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Yes I had noticed this in the past. The fetcher doesn’t behave like others.
So maybe we will not break backward compat?
Yes but I fear it’s quiet some work. Not sure how high priority this is…
closed by #9657