question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent environment variable name for Sleep Physionet dataset

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
agramfortcommented, Aug 8, 2021

@agramfort I just tested it and actually the mne-config.json file was not updated when I fetched data and provided a specific path. When I called it again without a path the data was downloaded again and saved under ~/mne_data. Does that change what you’d recommend doing?

Yes I had noticed this in the past. The fetcher doesn’t behave like others.

So maybe we will not break backward compat?

@sappelhoff So that would entail making a more complete version of the existing _data_path function? https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/datasets/sleep_physionet/_utils.py#L44

Yes but I fear it’s quiet some work. Not sure how high priority this is…

0reactions
drammockcommented, Oct 12, 2021

closed by #9657

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent environment variable name for Sleep Physionet dataset ...
Inconsistent environment variable name for Sleep Physionet dataset. The docstring of mne.datasets.sleep_physionet.age.fetch_data states the environment ...
Read more >
mne.datasets.sleep_physionet.age.fetch_data
This will fetch data from the publicly available subjects from PhysioNet's study of age effects on sleep in healthy subjects [1][2].
Read more >
commonest_words.txt - De-Identification Software Package
De-Identification Software Package 1.1 ... PhysioNet is a repository of freely-available medical research data, managed by the MIT Laboratory for Computational ...
Read more >
applying metadata with missing env var for data source with ...
When you reference an undefined ENV variable during a replace metadata call, ... "source with name NAME is inconsistent".
Read more >
An open-source toolbox for standardized use of PhysioNet ...
This provides an opportunity to standardize the way in which signals from this database should be used. With this goal in mind, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found