Skip to content

[sigproc] Do not take an EDF channel labeled EEG for an event channel - #991

Merged
arnodelorme merged 1 commit into
developfrom
agent/issue-989
Nov 27, 2026
Merged

arnodelorme merged 1 commit into
developfrom
agent/issue-989

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

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

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

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

@arnodelorme
arnodelorme merged commit 75cd384 into develop Nov 27, 2026
2 of 3 checks passed
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.

biosig2eeglab takes the last EEG channel of an EDF file for an event channel

1 participant