New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Sleep tutorial #5718
Merged
Merged
[MRG] Sleep tutorial #5718
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
320b1db
init tutorial sleep
Slasnista 4f77514
Add whats new
massich 26f0d30
Add sleep tuto into the documentation index
massich 36ff2d9
Comment the entire tuto to check that it compiles
massich 7799c65
Add sleep-edf to datasets_index
massich 3ae311d
proof of concept ok for sleep data
agramfort 7b3c76f
add fetch with test and update example
agramfort 6e328a3
update doc
agramfort 24a7601
more
agramfort ca4f8c3
oups
agramfort 4e06a27
preprocessing annotations
Slasnista 04746d7
update hypnogram figure
Slasnista a5dcf76
simplifying stuff
agramfort d66fe10
Even simpler solution
massich 917f25f
typo
massich 630a6db
Use md5 as default
massich efa58d6
deprecate md5
massich 75d5489
skip docstring test
massich 911bbc5
deprecate md5sum
massich 0d17bfc
feature extraction + model training
Slasnista 9203944
rebase What's new
massich 44831df
training + prediction
Slasnista fd5713e
more narrative version + shpinx things
massich adbf4ea
wip (use FunctionTransformer)
massich f86ee8d
simplify
agramfort efb8b7a
don't forget to normalize psds
agramfort bbb62c9
move bob below and add narrative
agramfort c4060f1
FIX: doc
massich 33e7baa
ENH: fit directly epochs to sklearn.pipeline
massich 3160065
fix travis [skip ci]
massich c424aa4
wip: doc iteration
massich 58a918f
simplify PSD plot
massich 791938f
doc pass
massich 6ccb679
add labels to the PSD
massich 3be5041
minor
massich c375afb
wip
massich ca1e4f7
Fix: typo
massich edd4572
WIP: update fetcher
massich 58b544c
physionet annotations have 8 different labels not 7
massich 7120c23
wip
massich 0261f7c
ENH: Split physionet fetcher into .age .temazepam
massich 6859e68
FIX: use hash_type instead of hashtype
massich 311e9cc
wip
massich 4373d47
wip
massich 6bdd897
wip
massich 09f23a9
wip
massich a8deb39
wip
massich def1a35
cosmit
massich 00f23f3
start with temazepam dataset
massich 2388cc6
wip in temazepan
massich 1cee686
finish temazepam fetcher
massich c2af0e4
doc physionet's age
massich ddd2769
Add temazepam records
massich fb5bf17
Merge master's whats new
massich 1b129a0
add sklearn's classificaiton report
massich 40b7b23
refactor fetchers
massich daf7c16
refactor data_path
massich d4db9dd
move records
massich 3a8ac9a
ups missing file
massich 1768367
clean up
massich 0c9919e
nitpick
massich 0619d32
link sklearn
massich 3cb0caa
pep8
massich f877d08
cosmit
agramfort 281938f
iter of sleep fetchers
agramfort 0b223c2
fix
agramfort 7270adf
doc fixes
agramfort 712aba8
fix CIs
agramfort 102199b
Merge branch 'master' into sleep_tutorial
massich 594c80f
minor review
massich dcb9c89
use pytest tmpdirs
massich 871d2de
mock _fetch_file to avoid downloading and speed up the testing
massich ee6b3f8
wip
massich cacecdb
add mock packages to environment.yml
massich 0ed6f79
ENH: refactor mocked object call inspection
massich e3e38e3
TST: no longer requries good network
massich 7e1655e
add mock dependencies in travis
massich 8bddae2
old stuff we forgot
massich 129b903
fix docstring
massich cc77141
update requriements for 3.7 travis
massich ef08992
just pytest-mock should be explicitely listed and don't list test lev…
agramfort f70e639
missing
agramfort f934da3
these tests are not slow. Just need good network
agramfort File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get how this can work. mocker is not imported. Your mocker function does not write any file to disk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean that the mocker is not imported?
pytest-mock
exposes this fixture calledmocker
which takes care of setting it up and tearing down.And I'm aware that I'm writing nothing. But
_fetch_one
delegates all the writing to the original_ferch_file
and I'm bypassing this so_fetch_one
works just as expected despite_fake_fetch_fle
does not write a thing.