Skip to content

Conversation

@psomhorst
Copy link
Contributor

The Butterworth filters can't handle data with NaN-values. Currently, if you pass data with NaN-values to apply_filter(...), it will silently return an array with all-NaN-data. This is difficult to debug.

This PR adds a check that raises an exception when the data to be filtered contains any NaN values. It also tips the user on how to fix the problem.

@psomhorst psomhorst force-pushed the fix_filter_nan_values branch from 51d4e36 to a75680a Compare August 11, 2025 11:26
@psomhorst psomhorst merged commit c6071f6 into develop Aug 11, 2025
8 of 9 checks passed
@psomhorst psomhorst deleted the fix_filter_nan_values branch August 11, 2025 11:31
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.

3 participants