Skip to content

[IO] Keep BDF events when the channel list leaves out Status - #751

Closed
arnodelorme wants to merge 1 commit into
developfrom
agent/issue-747
Closed

arnodelorme wants to merge 1 commit into
developfrom
agent/issue-747

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

pop_biosig read the BDF triggers only when the Status channel was among the loaded channels, so a channel list without it returned no event. The triggers are now read from the file whatever the list. On test.bdf with channels 1 to 3, EEGPrep returns the 3 channels and EEGLAB's 41 events, same types and latencies.

Fixes #747
Part of #735

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 57s —— View job


Code review

  • Overall assessment: Looks good. The fix is small and correct. Status events now come from the file header (openbdf(path)["Head"]["Label"]) instead of the loaded chanlocs. The Status channel is still removed only when it was loaded. I checked _import_bdf_status_channel and _blockrange_status_events, which already finds Status by its file label and so works when the channel is not loaded. I also checked the importevent='off', rmeventchan='off' and non-BioSemi paths, and the new test case.
  • Highest-risk area: process. This changes EEGLAB-ported import code, and the PR description has no reference-suite evidence.
  • Merge recommendation: Safe to merge once the MATLAB reference run is added to the description.

Blocking

None.

Important

  • The EEGLAB reference run is missing from the PR description (pop_biosig, AGENTS.md §Testing). AGENTS.md says: "Before merging a PR that changes core function implementations … trigger .github/workflows/eeglab-reference.yml … Put that run in the PR description: the exact command or workflow run, the EEGLAB and eeglab_tests commits, pass/fail/skip counts, runtime." The description says EEGPrep matches EEGLAB's 41 events on test.bdf, but it gives no workflow run, commits or counts. Fix: run eeglab-reference.yml on agent/issue-747 and paste the result into the description.

Nits

  • docs/source/changelog.rst:67-68: the new entry is one long unwrapped line followed by a blank line. The other bullets wrap at about 80 columns and have no blank line between them. Wrap the entry and remove the blank line.

Test gaps

None. The channels=[1] case added to test_pop_biosig_honors_status_import_and_removal fails on the old code (no events) and passes with the fix. I could not run it in this job because the test command was not permitted, so I checked it by reading the code only.

EEGLAB parity notes

None. In BIOSIG, sopen reads BDF events from the Status channel whatever channels are selected, so keeping the events when channels leaves out Status matches EEGLAB. The vendored pop_biosig.m is not in this checkout, so I did not compare line by line.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and CLAUDE.md/AGENTS.md compliance.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

Duplicate of #748.

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.

pop_biosig: a channel list that leaves out Status loses the BDF events

1 participant