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
GDF reader bug #12517
Comments
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴 |
Note that I get the following warnings when loading the file:
|
We could either restrict |
Whatever you end up deciding, I just confirmed with @schloegl that the file in question does indeed have all zeros for its filter settings, so we need to deal with such files gracefully. |
Yeah if we know this can happen with GDF files on some systems we could detect the behavior for at least that format |
I think even with EDF it is not guaranteed that those header fields contain sane values. We could use fallback values of 0 Hz and fs/2 Hz in such cases, respectively. |
The lowpass filter in raw.info is not set correctly when uploading raw gdf file and doesn't update after filtering. I noticed it while trying to plot continuous data and getting a ZeroDivision error.
gdf file: [2024-02-28_13_14_s01_s01_r01.gdf]
Code to replicate:
Error:
raw.info before filtering:
raw.info after filtering:
Other information:
MNE version: 1.6.1
Operating system: macOS 12
The text was updated successfully, but these errors were encountered: