Skip to content

[IO] Always create visible on pop_loadbv events - #802

Merged
arnodelorme merged 1 commit into
developfrom
agent/20261128-fix-792
Nov 28, 2026
Merged

arnodelorme merged 1 commit into
developfrom
agent/20261128-fix-792

Conversation

@claude

@claude claude Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

pop_loadbv now always creates the event visible field, as an empty string when a marker omits its seventh field, matching parsebvmrk.m. Saved .set files then store an empty char instead of an empty double or no field. Also documents that setname is the header filename stem.

Part of #792

🤖 Generated with Claude Code

parsebvmrk.m always creates visible, as an empty char when a marker omits
its seventh field. pop_loadbv now does the same, so saved .set files store
an empty char instead of an empty double or no field. Documents the
header-stem setname.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

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 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 48s —— View job


Code review

  • Overall assessment: Looks good. _parse_marker now always sets visible, using "" when a marker has no seventh field. Every event and urevent entry now has the same fields, and saved .set files store an empty char.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new test saves with pop_saveset and reads back with loadmat, checking both event and urevent, so it covers the saved-file behavior the PR describes.

EEGLAB parity notes

None. Setting setname to the header filename without its extension is a deliberate difference from EEGLAB, which leaves it empty. The Sphinx page and pop_loadbv.md both document it, and the new test checks it.

I checked correctness, EEGLAB parity, the EEG data structures, tests for the changed behavior, and AGENTS.md compliance. No existing test compares whole event dicts, so the new key doesn't break any of them.

Verification limits:

  • I couldn't run tests/test_pop_loadbv.py because the Bash command was not permitted in this run.
  • parsebvmrk.m isn't in the vendored EEGLAB tree, so I couldn't check the "L39" line reference in the new comment.

@arnodelorme
arnodelorme merged commit 04fccf0 into develop Nov 28, 2026
12 of 16 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.

1 participant