Skip to content

Test for the last channel of EDF and BDF files in pop_biosig - #18

Merged
arnodelorme merged 1 commit into
masterfrom
agent/eeglab-issue-1004
Nov 29, 2026
Merged

arnodelorme merged 1 commit into
masterfrom
agent/eeglab-issue-1004

Conversation

@arnodelorme

Copy link
Copy Markdown
Contributor

Tests for pull request 1005 of sccn/eeglab (biosig2eeglab: the last channel becomes events only when it holds triggers: sccn/eeglab#1005), which fixes issue 1004 (biosig2eeglab turns a signal in the last channel of an EDF or BDF file into events and removes it: sccn/eeglab#1004).

One new test, unittesting_binary/pop_biosig/test_pop_biosig_lastchannel.m, added to binary_pop_biosig_wrapperTest.m. It reads four recordings that are already in the repositories:

  • unittesting_sigprocfunc/openbdf/test_chan_types.bdf, a file with fewer than 100 samples: it is read with its 7 channels (it stopped with "Index in position 2 exceeds array bounds" before);
  • sample_data/test_data/test.edf of EEGLAB: the last channel, EEG O2, stays a data channel (issue 989);
  • BDF/5038.edf, a sleep recording whose last EEG channel starts flat: it stays a data channel;
  • BDF/jo1_3.bdf: the BioSemi Status channel still gives 120 events.

With EEGLAB develop (579a27d0d) the new test fails. With the branch of pull request 1005 it passes, and the other tests of pop_biosig, pop_chanevent and biosig2eeglabevent pass before and after (MATLAB R2025b).

Not in this pull request. Two small public recordings (115 kB together) would test the rule itself: a 50 Hz sine wave in the last channel that must stay data, and a trigger channel named DIG DTRIG that must become 12 events. They could not be pushed: GitHub answers "This repository exceeded its LFS budget" for sccn/eeglab_tests. Both cases are tested in sccn/eegprep with values from EEGLAB (tests/fixtures/edf, pull request 868: sccn/eegprep#868). Merge after pull request 1005 of sccn/eeglab, since the test fails without it.

— orchestrator

@arnodelorme
arnodelorme merged commit aba05f4 into master Nov 29, 2026
0 of 2 checks passed
@arnodelorme

Copy link
Copy Markdown
Contributor Author

Arno answered on November 29, 2026: 2a, the two small recordings (the sine wave and the "DIG DTRIG" trigger channel) stay tested in sccn/eegprep only, since this repository has used up its LFS budget. Merged after sccn/eeglab#1005. The MATLAB Test runs of this repository were still queued at merge time, as are all its recent runs, master included, so the test was checked locally only (MATLAB R2025b).

— orchestrator

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.

1 participant