Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖
Phase 2: File Format And Channel-Location Long Tail
Summary
Port useful EEGLAB import/export/channel-location workflows from the parity matrix. This phase should make EEGPrep stronger as a standalone tool for researchers loading, saving, and repairing real EEG datasets, without blindly porting obsolete format helpers.
Can start after Phase 1 merges. Can run in parallel with Phases 3 and 4.
Scope
Prioritize:
pop_readlocs,pop_writelocs,readlocs,writelocs- location helpers such as
convertlocs,chancenter,pop_chancenter,pop_chancorespwhen user-facing or workflow-required - EGI/BCI/snapread import paths only if documented, fixture-testable, or used by menu/API paths
- BIOSIG legacy wrappers only when they map cleanly to existing modern import behavior
Do not port stale import helpers just because same-name MATLAB files exist. Update the parity matrix with explicit skip rationale instead.
Acceptance Criteria
- File/channel-location APIs work standalone with packaged resources or explicit user files.
- GUI dialogs, if added or changed, visually match EEGLAB and include side-by-side PR attachments.
- User-facing commands support
return_com=Trueand produce valid Python console history. - GUI paths update
EEGPrepSession,LASTCOM,ALLCOM,EEG,ALLEEG, andCURRENTSETcorrectly. - Tests cover sample data, synthetic location files, malformed files, 1-based UI index handling, cancel/error paths, and MATLAB parity where deterministic.
- Parity matrix rows touched by this phase are updated to
implemented,partial,consolidated, or explicit skip.
Verification
Run focused tests for touched loaders/writers/dialogs, then:
uv run --no-sync ruff check .uv run --no-sync ruff format --check .uv run --no-sync ty checkEEGPREP_SKIP_MATLAB=1 uv run --no-sync pytest -m "not slow"as risk requires- MATLAB parity tests where available and deterministic
- GUI visual parity workflow for any dialog changes
/goal Prompt
/goal Complete EEGPrep parity for file-format and channel-location long-tail workflows from the parity matrix. Port only user-facing or workflow-required EEGLAB behavior, keep runtime standalone, add GUI/console/API paths where relevant, update the parity matrix, and verify with fixtures, MATLAB parity where deterministic, visual parity for dialogs, ruff/format/ty, and focused pytest.
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
claude commentedon Jun 5, 2026
🤖 Plan:
Research
Phase 2 is an epic-sized port of EEGLAB's file-format and channel-location long tail. None of the named functions exist in
src/eegpreptoday —grep -RniE "readlocs|writelocs|convertlocs|chancenter|chancoresp" src/eegprepreturns zero hits. Per epic #131 the recommended merge order is `1 -> 2 + 3 + 4 -> ...` and Phase 1 (#132) is still OPEN, so Phase 2 has an unmet upstream dependency on the parity matrix and porting contracts.Relevant code / refs
Scope (why no PR)
The acceptance criteria require, per ported user-facing function: Python API, GUI dialog with EEGLAB visual parity (side-by-side attachments), `return_com=True` history, `EEGPrepSession`/`LASTCOM`/`ALLCOM`/`ALLEEG`/`CURRENTSET` sync, packaged help Markdown, and tests (synthetic + malformed + 1-based UI indexing + cancel/error + MATLAB parity where deterministic). Realistic LOC for the minimal must-port set (`pop_readlocs`, `pop_writelocs`, `readlocs`, `writelocs`, `convertlocs`, `chancenter`, `pop_chancenter`, `pop_chancoresp`) is several thousand lines across `functions/popfunc/`, `functions/sigprocfunc/`, `functions/guifunc/`, `resources/help/`, `tests/`, plus parity-matrix entries. That exceeds the small-bug-fix threshold for a single agent PR.
Additionally, the vendored EEGLAB reference at `src/eegprep/eeglab/` is empty in this environment, so MATLAB-side parity capture cannot be done here without first vendoring the reference sources for these specific files.
Proposed Approach (for human review)
Split this phase into independently mergeable sub-PRs, gated on #132 merging first so the parity matrix exists to record per-row status:
Each sub-PR targets `feature/eeglab-core-parity-completion` (the epic branch), not `develop`, per #131. Recommend a human assigns these as individual issues or as `/goal` invocations so each one runs through the `eegprep-feature-development` skill end-to-end.
Blockers before any sub-PR can start:
suraj-ranganath commentedon Jun 7, 2026
🤖 Resolved by the work now included in PR #152. Closing this constituent phase/follow-up issue now; parent epic #131 remains open until the epic PR merges.