Skip to content

Port EEGLAB GDF export coverage - #355

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

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

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Ports the current EEGLAB pop_writeeeg GDF path with a standalone GDF 1.25 writer. Independent MNE round trips validate exact float64 samples, rational rates, labels, events, history, and invalid-input behavior.

@suraj-ranganath

Copy link
Copy Markdown
Member Author

🤖 Problem
The current EEGLAB pop_writeeeg suite exercises GDF export, while EEGPrep explicitly rejected it and therefore could not complete that workflow.

Approach
Add a standalone GDF 1.25 float64 writer with rational record timing, calibrated channel metadata, numeric and deterministic free-text event codes, and strict representability checks. Route pop_writeeeg through it without making runtime behavior depend on the vendored EEGLAB tree.

Key code
writegdf builds fixed, per-signal, signal-data, and mode-3 event sections; pop_writeeeg supplies EEG labels, events, subject metadata, and replayable history. The tests use MNE as an independent reader and cover event-code collisions, fractional and sub-hertz rates without events, input validation, and public API exposure.

Tests
Full non-MATLAB suite: 2,921 passed, 262 skipped, 1 expected xfail, and 400 subtests. Focused warnings-as-errors, adjacent file workflows, Ruff, formatting, scoped typing, pre-commit, and Sphinx dummy 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:09
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-gdf-export-stacked branch from a646202 to 68aec4d 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-gdf-export-stacked branch 2 times, most recently from cbfa639 to f813084 Compare September 14, 2026 10:38
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-gdf-export-stacked branch from f813084 to 11fdaa9 Compare September 14, 2026 10:44
@arnodelorme
arnodelorme merged commit f5f7761 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