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

[FIX] Reading an EDF with preload=False and mixed frequency #13069

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

skjerns
Copy link
Contributor

@skjerns skjerns commented Jan 17, 2025

Fixes #12897.

When loading an EDF with mixed sample frequencies and using preload=False and then requesting a channel that has lower sample frequency than the maximum resulted in an AssertionError.

What does this implement/fix?

This Assertion was in place to make sure that enough samples were read, but only made sense when one of the channels of maximum sample frequency was loaded.

It can simply be removed as I don't think that the case can actually occur. Additionally, there is another check for zeros a few lines later that serves a similar purpose.

@larsoner
Copy link
Member

I know it unrelated, but to get things green could you add Starting field name with a underscore as another ignore to

ignore:numpy\.core\.records is deprecated.*:DeprecationWarning

?

@larsoner
Copy link
Member

Never mind I pushed... marking for merge-when-green, thanks in advance @skjerns !

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.

Error when reading an EDF file (resampling)
2 participants