Repository navigation
Test for the boundary events at the gaps of an EDF+D file - #19
Open
arnodelorme wants to merge 2 commits into
Open
arnodelorme wants to merge 2 commits into
arnodelorme wants to merge 2 commits into
Conversation
pop_biosig must place a boundary event at each gap of a discontinuous EDF+D file (sccn/eeglab issue 1003). The example file edf_plus_d_gaps.edf comes from sccn/eegprep (tools/write_edf_plus_d_gaps.py) and the expected latencies and durations are those of EEGPrep's reader in Python. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 29, 2026
After the review by Codex GPT-6.1 Terra: the same recording as a BDF+D file, a gap of 0.75 sample (no boundary) and of 1 sample (boundary), and a comparison that fails on NaN. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Contributor
Author
|
The review of this test, with the EEGLAB change, is in sccn/eeglab#1006 (comment) (Codex, model GPT-6.1 Terra). Its finding on this test, a comparison that accepted NaN, is fixed in commit 5b8a3e7, which also adds the BDF+D twin of the example file and gaps of 0.75 and 1 sample. — orchestrator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the example file and the test for the boundary events that
pop_biosigmust place at the gaps of a discontinuous EDF+D file (issue sccn/eeglab#1003, sccn/eeglab#1003).pass_edfplusd_boundaries(new)unittesting_binary/pop_biosigeeglabsubmodule, so the new test stays red here until that submodule points to a develop that holds the change (the usual "updating EEGLAB" commit).unittesting_binary/pop_biosig/edf_plus_d_gaps.edf(4160 bytes) and its BDF+D twinbdf_plus_d_gaps.bdf(5600 bytes, the same recording with 24-bit samples), written bytools/write_edf_plus_d_gaps.pyof sccn/eegprep. It holds 3 channels at 50 Hz in 8 records of 1 second that start at 0, 1, 3, 4, 5.25, 6.25, 7.25 and 10.25 seconds. They sit beside their test and not inunittesting_binary/testfiles, which is stored with Git LFS, so that a raw link gives the file.What the test checks
'blockrange', [1 6]: samples 51 to 300 and the two boundaries inside the range, at 50.5 and 150.5.S001R01.edf) gets no boundary.'blockepoch', 'on', because that call does not return on this file on EEGLAB develop, with or without the change (reported in issue pop_biosig joins the records of an EDF+D file without a boundary event eeglab#1003).🤖 Generated with Claude Code