Skip to content

[HOTFIX] Update sleep physionet to the complete dataset - #5932

Merged
larsoner merged 5 commits into
mne-tools:masterfrom
massich:sleep_dataset
Feb 13, 2019
Merged

larsoner merged 5 commits into
mne-tools:masterfrom
massich:sleep_dataset

Conversation

@massich

@massich massich commented Feb 13, 2019

Copy link
Copy Markdown
Contributor

@hubertjb realized that in #5718 we used an incomplete version of the sleep dataset.
(It was not clear that this version was available so we also open MIT-LCP/physionet#97)

This PR updates the fetchers so that we use the full version of the data.

@massich massich changed the title [WIP] Update Temazepam dataset to the complete physiobank dataset [WIP] Update sleep physionet to the complete dataset Feb 13, 2019

data_path = _data_path # expose _data_path(..) as data_path(..)

BASE_URL='https://physionet.org/physiobank/database/sleep-edfx/sleep-telemetry/'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8 ...

@agramfort

Copy link
Copy Markdown
Member

@hubertjb I'll let you try first to confirm that it works for you.

thx @massich for taking a stab at this

@larsoner

Copy link
Copy Markdown
Member

@codecov

codecov Bot commented Feb 13, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5932 into master will decrease coverage by 37.35%.
The diff coverage is 89.47%.

@@             Coverage Diff             @@
##           master    #5932       +/-   ##
===========================================
- Coverage   88.72%   51.37%   -37.36%     
===========================================
  Files         401      401               
  Lines       72354    72351        -3     
  Branches    12154    12154               
===========================================
- Hits        64197    37169    -27028     
- Misses       5219    33069    +27850     
+ Partials     2938     2113      -825

@massich

massich commented Feb 13, 2019

Copy link
Copy Markdown
Contributor Author

Is it related?

yes completely. They turned the data down. (see MIT-LCP/physionet#97 (comment))

regarding the fleck8 I was aware. We start migrating together with @hubertjb and we only changed BASE_URL for temazepam. We decided that we would continue tomorrow but I guess that now this is a hotfix due to errors in master.

I'm on it.

@larsoner

Copy link
Copy Markdown
Member

Great, thanks. Will merge once Travis is happy again. If there is an example that uses this dataset, please (make sure it still works and) make some small change to it so that CircleCI will run it.

@massich

massich commented Feb 13, 2019 •

Copy link
Copy Markdown
Contributor Author

There's a travis test that mimics what circle will find. Ah, ok now I see what you meant. modify the example to trigger the makefile.

@larsoner

Copy link
Copy Markdown
Member

The mimic will usually not be as good/complete as having CircleCI actually download the data and run the example so we can examine the output. So please at least try running the example locally so that we don't break CircleCI with this PR

@massich

massich commented Feb 13, 2019

Copy link
Copy Markdown
Contributor Author

If green this should go in as it is. There's a subsequent PR making use and testing the new data.

@massich massich changed the title [WIP] Update sleep physionet to the complete dataset [HOTFIX] Update sleep physionet to the complete dataset Feb 13, 2019
@massich

massich commented Feb 13, 2019

Copy link
Copy Markdown
Contributor Author

The doc builds with no problem on my machine

@larsoner

Copy link
Copy Markdown
Member

@massich can you fix the new flake errors? If not I can do it

@larsoner

Copy link
Copy Markdown
Member
mne/datasets/sleep_physionet/age.py:17:1: E302 expected 2 blank lines, found 1
mne/datasets/sleep_physionet/_utils.py:149:5: F841 local variable 'subjects_url' is assigned to but never used
mne/datasets/sleep_physionet/tests/test_physionet.py:20:1: F401 'mne.datasets.sleep_physionet._utils.BASE_URL' imported but unused

@larsoner
larsoner merged commit 90b91a3 into mne-tools:master Feb 13, 2019
@larsoner

Copy link
Copy Markdown
Member

Thanks @massich

@massich

massich commented Feb 13, 2019 via email

Copy link
Copy Markdown
Contributor Author

@massich
massich deleted the sleep_dataset branch May 27, 2019 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants