-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add FutureWarning in hypnogram functions #123
Conversation
Codecov ReportBase: 92.53% // Head: 92.48% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
==========================================
- Coverage 92.53% 92.48% -0.05%
==========================================
Files 23 23
Lines 3106 3088 -18
==========================================
- Hits 2874 2856 -18
Misses 232 232
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Great!
I'm surprised you didn't deprecate yasa.hypno.hypno_consolidate_stages
? Or maybe just remove it? I was thinking that function is so new that it could probably just get removed without notice. I think it was maybe even added knowing that it would not be needed for long.
Whatever you wanna do is cool with me. Merge! 🚀
Thanks for the super quick review! Good catch re: One pending comment for you regarding |
Just wanted to add an argument here for always retaining these functions as isolated utility functions. I'm currently developing some examples for an upcoming PR and I am finding it useful to have functions like I see here you aren't planning to immediately deprecate them, just noting in case it's on the table. Of course best to not have redundant code, so not sure how to handle it. |
Good point, I actually also use We can also discuss whether to leave or remove them from the public API in 6-12 months when we get closer to v0.8 |
This is a pretty straightforward PR that adds a
FutureWarning
to the now-outdatedyasa.hypno
functions. I did not add a warning for a few functions that are called directly from the class methods (e.g.transition_matrix
).This PR also implements a few minor fixes and improvements in the docstring.
@remrama would appreciate your review if time allows it. Otherwise I can just merge as is since it's a low-risk PR.