You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_biosig: track MATLAB ignoring a three-channel request on the EEGLAB test files #854
🤖 In MATLAB R2025b with the BioSig plugin, run pop_biosig(fullfile(fileparts(which('eeglab')),'sample_data','test_data','test.bdf'),'channels',[1 2 3]). size(EEG.data) is [16 15360]. test.edf returns the same 16-channel shape. The #812 Python reader returns the requested first three channels on the same input, with rate and events unchanged. The original comparison mentioned channel selection; these are the two outstanding cases in the new 20-case matrix. Retain this as a reference-side finding for the BioSig comparison.
Earlier issue: #735, pop_mneio, formerly pop_biosig (File > Import data > BDF, EDF and MNE-IO interface): graphical and numerical parity with EEGLAB
Actionability check: no EEGPrep code change identified, so no PR opened
Research
The discrepancy is on the MATLAB/BioSig side: EEGLAB pop_biosig(..., 'channels', [1 2 3]) returns all 16 channels for test.bdf/test.edf. EEGPrep returns the requested channels, which is the intended behavior. PR #857 already explains this choice ("Honor explicit channel selection") and links here. The vendored EEGLAB tree in this checkout has no pop_biosig.m, so I could not locate the MATLAB root cause locally.
Mark the two channels=[1 2 3] BDF/EDF cases as a known MATLAB-side difference in the reference comparison, so they are skipped or asserted against the expected channel subset. If so, say which test or harness owns the 20-case matrix, since it is not in this repo.
Report the problem upstream to sccn/eeglab or the BioSig plugin, after confirming whether pop_biosig.m ignores channels for BDF/EDF or whether sopen does.
Activity
claude commentedon Nov 29, 2026
🤖 Plan:
Research
The discrepancy is on the MATLAB/BioSig side: EEGLAB
pop_biosig(..., 'channels', [1 2 3])returns all 16 channels fortest.bdf/test.edf. EEGPrep returns the requested channels, which is the intended behavior. PR #857 already explains this choice ("Honor explicit channel selection") and links here. The vendored EEGLAB tree in this checkout has nopop_biosig.m, so I could not locate the MATLAB root cause locally.Relevant code
src/eegprep/functions/popfunc/pop_biosig.py: Python reader, rewritten in [GUI] Read BioSig files with the optional Python BioSig library #857tests/test_stream9_readers.py: reader tests, where a documented exclusion would gosrc/eegprep/resources/help/pop_biosig.md: user-facing helpNeeded before any implementation
The issue has no definition of done. Which of these do you want?
channels=[1 2 3]BDF/EDF cases as a known MATLAB-side difference in the reference comparison, so they are skipped or asserted against the expected channel subset. If so, say which test or harness owns the 20-case matrix, since it is not in this repo.pop_biosig.mignoreschannelsfor BDF/EDF or whethersopendoes.