Skip to content
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

First implementation of the Hypnogram class #116

Merged
merged 40 commits into from
Dec 24, 2022
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2ecade5
Initial class creation for Hypnogram
raphaelvallat Dec 2, 2022
cbe3c73
Add properties + mapping
raphaelvallat Dec 2, 2022
d9af22e
Add sleep_statistics and upsample
raphaelvallat Dec 3, 2022
b414874
Add mapping for all n_stages + SFI
raphaelvallat Dec 3, 2022
05e5c79
Fix in sleep_statistics when all WAKE
raphaelvallat Dec 3, 2022
1c37e94
Minor edits
raphaelvallat Dec 3, 2022
7b9d50a
Added `scorer` and two new methods
raphaelvallat Dec 4, 2022
7770111
Add docstring
raphaelvallat Dec 14, 2022
ef97521
Start adding unittest for Hypnogram class
raphaelvallat Dec 14, 2022
4544213
Add more docstring
raphaelvallat Dec 14, 2022
54af13e
Add main docstring + unit test upsample_to_data
raphaelvallat Dec 15, 2022
f6d60a8
Uncommented upsample function
raphaelvallat Dec 15, 2022
b48c02d
Add to API
raphaelvallat Dec 15, 2022
65f8bd2
Add unit tests for 3-5 stages hypnogram
raphaelvallat Dec 16, 2022
624536b
Added consolidate_stages method
raphaelvallat Dec 16, 2022
366302e
First minor comments from PR review
raphaelvallat Dec 23, 2022
800365b
Initial class creation for Hypnogram
raphaelvallat Dec 2, 2022
b10294a
Add properties + mapping
raphaelvallat Dec 2, 2022
42dfe35
Add sleep_statistics and upsample
raphaelvallat Dec 3, 2022
cc3e8c1
Add mapping for all n_stages + SFI
raphaelvallat Dec 3, 2022
a176849
Fix in sleep_statistics when all WAKE
raphaelvallat Dec 3, 2022
c725415
Minor edits
raphaelvallat Dec 3, 2022
6cea08e
Added `scorer` and two new methods
raphaelvallat Dec 4, 2022
8023ec5
Add docstring
raphaelvallat Dec 14, 2022
b803e3d
Start adding unittest for Hypnogram class
raphaelvallat Dec 14, 2022
6669ea1
Add more docstring
raphaelvallat Dec 14, 2022
ad545f3
Add main docstring + unit test upsample_to_data
raphaelvallat Dec 15, 2022
6e430d6
Uncommented upsample function
raphaelvallat Dec 15, 2022
91561bc
Add to API
raphaelvallat Dec 15, 2022
2b4ff86
Add unit tests for 3-5 stages hypnogram
raphaelvallat Dec 16, 2022
c2e6523
Added consolidate_stages method
raphaelvallat Dec 16, 2022
1da9098
First minor comments from PR review
raphaelvallat Dec 23, 2022
0776a62
Merge branch 'hypnogram_class' of https://github.com/raphaelvallat/ya…
raphaelvallat Dec 23, 2022
7f3cd3a
Add docstring for method `upsample`
raphaelvallat Dec 23, 2022
0d12f67
Added as_annotations method
raphaelvallat Dec 24, 2022
a6cf092
Minor docstring edits
raphaelvallat Dec 24, 2022
8aaafc2
Epoch starts at 0 in `as_annotations`
raphaelvallat Dec 24, 2022
3d4a251
Updated changelog
raphaelvallat Dec 24, 2022
b1cc5f9
Fix typo
raphaelvallat Dec 24, 2022
540792b
Merge branch 'master' into hypnogram_class
raphaelvallat Dec 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Hypnogram & sleep statistics
.. autosummary::
:toctree: generated/

Hypnogram
hypno_upsample_to_data
hypno_upsample_to_sf
hypno_str_to_int
Expand Down
Loading