Open anamelnich opened 5 months ago
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:
RuntimeWarning: Channels contain different highpass filters. Highest filter setting will be stored.
RuntimeWarning: Channels contain different lowpass filters. Lowest filter setting will be stored.
We could either restrict info["lowpass"]
to be strictly less than zero or (my vote) improve the sufficient-lowpass check to only run if info["lowpass"] > 0
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