Skip to content

Port EEGLAB BrainVision import coverage - #356

Merged
arnodelorme merged 1 commit into
work/testports-gdf-export-stackedfrom
work/testports-brainvision-stacked
Sep 19, 2026
Merged

arnodelorme merged 1 commit into
work/testports-gdf-export-stackedfrom
work/testports-brainvision-stacked

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Ports every active current-suite pop_loadbv call with a standalone BrainVision reader. Binary and ASCII data, channel scaling and units, markers, selections, segmented exports, File-IO routing, and strict corruption behavior are covered with exact fixtures.

@suraj-ranganath

Copy link
Copy Markdown
Member Author

🤖 Problem
The maintained EEGLAB suite exercises eight BrainVision import workflows, but EEGPrep lacked a standalone pop_loadbv path and depended on generic reader coverage that did not enforce EEGLAB metadata, indexing, or segmentation semantics.

Approach
Implement direct parsing for BrainVision headers, binary and ASCII payloads, coordinates, marker files, selections, metadata-only reads, and uniform segmented recordings. Wire .vhdr into File-IO and the GUI while retaining a standalone runtime with strict contradictory/truncated-file errors.

Key code
pop_loadbv handles multiplexed and vectorized int16, uint16, float32, ASCII, endianness, voltage-unit normalization, channel resolution, marker remapping, and trial reconstruction. Tests cover all eight active upstream calls with exact provenance, plus malformed input and GUI routing.

Tests
Integrated focused/adjacent suite: 196 passed and 19 subtests. The source slice also passed 2,582 broad tests with 78 skips and one expected xfail; all eight pinned upstream LFS recordings loaded, Ruff, formatting, scoped typing, pre-commit, and Sphinx passed.

@claude

claude Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@suraj-ranganath
suraj-ranganath marked this pull request as ready for review September 14, 2026 10:09
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-brainvision-stacked branch from 56a2231 to b9053ca Compare September 14, 2026 10:09

@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's credit balance is too low for Code Review to run.

An organization admin can purchase credits or upgrade the plan in Plans & Billing.

Once credits are available, reopen this pull request to trigger a review.

@suraj-ranganath
suraj-ranganath force-pushed the work/testports-brainvision-stacked branch from b9053ca to fc219e4 Compare September 14, 2026 10:22
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-brainvision-stacked branch from fc219e4 to e4ddef2 Compare September 14, 2026 10:38
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-brainvision-stacked branch from e4ddef2 to 60a39e4 Compare September 14, 2026 10:44
@arnodelorme
arnodelorme merged commit b76d797 into develop Sep 19, 2026
9 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.

2 participants