Skip to content

Port EEGLAB ERPSS import coverage - #357

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

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

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Ports the current ERPSS import wrapper with standalone compressed and uncompressed RAW/RDF reading. Exact tests cover both endiannesses, calibration, timing, events, labels, history, corruption handling, and the original pinned recordings without the legacy MEX dependency.

@suraj-ranganath

Copy link
Copy Markdown
Member Author

🤖 Problem
The maintained EEGLAB suite exercises ERPSS RAW/RDF import, but its decompression path relies on a legacy MEX extension and the wrapper test makes no assertions. EEGPrep had no equivalent standalone workflow.

Approach
Implement the ERPSS block format directly, including uncompressed and delta-compressed samples in both byte orders, channel calibration, timing, labels, events, and strict truncation checks. Add meaningful exact tests and a pop wrapper with replayable history.

Key code
read_erpss validates file and block tags, decodes samples, accumulates variable block lengths for correct event latencies, and derives sampling/calibration metadata. pop_read_erpss creates a consistent EEG dictionary and accepts an explicit rate only when the header cannot supply one.

Tests
Integrated warnings-as-errors suite: 113 passed. The source slice full suite passed 2,737 tests, 262 skips, one expected xfail, and 400 subtests; reader/wrapper trace coverage was 94%/100%, both upstream LFS files were verified, and Ruff, formatting, 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:10
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-erpss-stacked branch from ba9f387 to a55d440 Compare September 14, 2026 10:10

@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-erpss-stacked branch from a55d440 to 9d581ff Compare September 14, 2026 10:22
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-erpss-stacked branch from 9d581ff to 198ce0a Compare September 14, 2026 10:38
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-erpss-stacked branch from 198ce0a to d25fb5b Compare September 14, 2026 10:44
@arnodelorme
arnodelorme merged commit 90d137e 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