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
Sampling interval can be float #59
Conversation
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
+ Coverage 97.19% 97.26% +0.07%
==========================================
Files 3 3
Lines 285 293 +8
==========================================
+ Hits 277 285 +8
Misses 8 8
Continue to review 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.
Cool, thanks.
Can you please add a test covering a bunch of conventionally used sfreqs? (e.g. 512, 125, 100, 500, 1000, 1024, ...)
re: f-strings yes, would be nice! Preferably as a follow up PR though!
Finally, please add a what's new entry --> I think this would fall under the "bug" category, WDYT? |
@sappelhoff is this test OK? |
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
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.
LGTM apart from my two suggestions.
If tests pass, this can be merged!
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
But do you think it's necessary to read the interval from the VHDR file and compare that with the inverse of the specified sampling frequency? Or do we just rely on MNE to do that during loading? |
I think ideally, we'd do both 🤔 but for now MNE is probably sufficient. |
Thanks @cbrnr if you are up to add a test with bare-python reading+checking the written sfreq, that'd be a nice addon :) |
Fixes #52. I've also introduced f-strings in this block of code - do you want me to convert the rest as well?