Skip to content

Port EEGLAB EGI RAW import coverage - #358

Merged
arnodelorme merged 1 commit into
work/testports-erpss-stackedfrom
work/testports-egi-raw-integrated
Sep 19, 2026
Merged

arnodelorme merged 1 commit into
work/testports-erpss-stackedfrom
work/testports-egi-raw-integrated

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Ports every current EGI RAW and segmented-series wrapper with standalone Simple Binary v2-v7 readers. Exact tests cover selections, calibration, events, categories, montages, series validation, history, and scientifically correct leading-edge timing.

@suraj-ranganath

Copy link
Copy Markdown
Member Author

🤖 Problem
The maintained EEGLAB suite invokes EGI Simple Binary readers, but EEGPrep lacked standalone RAW v2-v7 and numbered-series workflows; the upstream wrapper calls themselves contain no assertions.

Approach
Implement header-only and signal readers plus dataset wrappers for continuous, segmented, and numbered recordings. Strengthen the port with exact signal, metadata, event, category, selection, montage, history, truncation, compatibility, and series-gap checks.

Key code
readegihdr and readegi decode all integer/float precisions and segment metadata; pop_readegi builds continuous or epoched EEG datasets; pop_readsegegi validates and concatenates contiguous files. EEGPrep deliberately corrects EEGLAB event edges placed one sample early, ten-sample-only reference detection, and silent omission after numbered gaps.

Tests
Integrated warnings-as-errors format stack: 64 passed. The source slice passed 2,759 full tests, 262 skips, one expected xfail, and 400 subtests; 99 adjacent tests, actual upstream v2 data, exact live MATLAB comparisons, Ruff, formatting, typing, pre-commit, and Sphinx also 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-egi-raw-integrated branch from fa11ee1 to 6f4715e 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-egi-raw-integrated branch from 6f4715e to 29aeccc Compare September 14, 2026 10:23
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-egi-raw-integrated branch from 29aeccc to 44e5977 Compare September 14, 2026 10:38
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-egi-raw-integrated branch from 44e5977 to 72214ba Compare September 14, 2026 10:44
@arnodelorme
arnodelorme merged commit 7fc9ded 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