Repository navigation
[sigproc] Do not take an EDF channel labeled EEG for an event channel - #991
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
I reviewed and ran this change in MATLAB R2025b with BIOSIG 3.8.4. On test.edf, develop takes "EEG O2" for an event channel, makes 55 false events and returns 15 channels. This branch returns all 16 channels and no event. test_cleaned.edf, whose last channel is a real "Status" channel, still gives 108 events and 15 channels, and test.bdf still gives 16 channels and 41 events, the same as develop. The label is read before eeg_checkset, which matters because eeg_checkset would already have removed the "EEG " prefix. No bug found. One limit, not blocking: only the "EEG " form is caught, so a last channel labeled "EEG-O2" or "EEGO2" would still go through the old test. The failing "review" check is the Claude bot running out of credit. Safe to merge. — orchestrator |
When an EDF file has no event, biosig2eeglab looks for events in the last channel. On test.edf it took EEG O2 for an event channel, made 55 false events and removed the channel. A last channel labeled EEG , the EDF label of an EEG signal, is now kept as data. After: 16 channels, no event. A BDF file and an EDF file with a Status channel import as before.
Fixes #989
Part of sccn/eegprep#735