Detect/correct invalid HP/LP settings in EDF/BDF/GDF#8584
Detect/correct invalid HP/LP settings in EDF/BDF/GDF#8584larsoner merged 5 commits intomne-tools:masterfrom
Conversation
|
@apospraf loading files from BCI Competition IV 2B works as expected with this PR. |
larsoner
left a comment
There was a problem hiding this comment.
Want to add a quick test via monkeypatch (probably of _read_edf_header)? If not I can see if it's easy and push if so
|
Please go ahead and add a test, I won't have time until tomorrow. |
|
I don't think the current approach quite works properly, for example it doesn't handle Moreover sometimes |
|
@cbrnr all good now? |
|
Yes, perfect! |
Fixes #8582. EDF/BDF/GDF files can contain invalid LP/HP filter settings (cutoff frequencies for HP can be greater than the one for LP). This PR (1) issues a warning and (2) sets HP/LP values for affected channels to
None.