Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖 Phase issue for the STUDY and standalone integration epic #78.
Goal
Implement STUDY measure precompute and study-measure plotting parity on top of the Phase 5a STUDY/session foundations.
Target branch and PR flow
- Create the phase branch from
feature/study-standalone-completionafter Phase 5a lands, unless a temporary early branch is explicitly coordinated. - Open the phase PR back into
feature/study-standalone-completion. - The phase PR should close this issue.
Dependencies
- Depends on Phase 5a STUDY design/session/file contracts.
- Depends on Epic: Complete EEGPrep core EEGLAB parity except browser and external plugins #60 Phase 4 plotting primitives for final plotting behavior.
- Should land before Phase 5c clustering, because clustering consumes precomputed measures.
In scope
- Precompute channel measures.
- Precompute component measures.
- Plot channel/component STUDY measures.
std_*helpers required by measure precompute and measure plotting workflows.- GUI dialogs, help Markdown, history strings, and valid Python console echoes for measure workflows.
Out of scope
- Basic STUDY creation/load/save/design contracts; see Phase 5a.
- Preclustering arrays, component clustering, and cluster editing/plotting workflows; see Phase 5c.
- Final cross-phase integration evidence and broad GUI Agent QA; see Phase 5d.
- External-only LIMO behavior unless explicitly represented by a clear user-facing message.
Acceptance criteria
- STUDY precompute and measure plotting workflows are usable from GUI, Python API, and
eegprep-console. - Outputs and STUDY/ALLEEG mutations match EEGLAB structure expectations where deterministic.
- Tests cover representative multi-dataset fixtures, channel/component measure paths, missing ICA/channel-location cases, cancel/error paths, history replay, and MATLAB parity where feasible.
- GUI dialogs and plotting flows have visual parity captures and PR user-attachment side-by-side images.
- Required lint/type/test commands pass.
/goal prompt
/goal Complete EEGPrep parity for STUDY measure precompute and measure plotting workflows. Build on Phase 5a contracts and #60 plotting primitives, inspect EEGLAB source first, implement GUI/API/eegprep-console paths, add multi-dataset and MATLAB parity tests where deterministic, add visual parity screenshots, run ruff/format/ty and focused plus non-slow pytest, and iterate until review finds no actionable parity or correctness issues.
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
claude commentedon May 28, 2026
🤖 Plan:
feature/study-standalone-completion)Research
This is a multi-week multi-module port, not a bug. Phase 5b builds STUDY measure precompute, study-measure plotting, and clustering on top of Phase 5a STUDY/session contracts. Phase 5a (#65) is OPEN and unstarted, the prerequisite integration branch
feature/study-standalone-completiondoes not exist on origin, and #60 (plotting primitives Phase 4) is OPEN. EEGPrep's current STUDY surface is a stub with nostd_*helpers and only placeholder dispatches for every Phase 5b user-facing entry point.Current state
Hard blockers
Proposed Approach
Do not start a PR yet. Once Phase 5a lands and the integration branch exists, decompose Phase 5b into focused sub-PRs that each merge into
feature/study-standalone-completion:std_precomp,std_readdata/std_readfile, measure file I/O (.dat*,.ica*), andpop_precompfor bothchannelsandcomponentsvariants. Reuse Phase 5a STUDY dict + ALLEEG iteration. Multi-dataset fixture undersample_data/study_demo/(3-4 synthesized subjects fromeeglab_data.set). MATLAB parity on a deterministic measure (ERP mean) on the fixture.std_erpplot,std_specplot,std_topoplot,std_chantopo, andpop_chanplot. Gate on Phase 4 plotting primitives from Epic: Complete EEGPrep core EEGLAB parity except browser and external plugins #60; explicitly note the dependency.std_erspplot,std_itcplot, component-projection helpers, and the component side ofpop_chanplot/pop_envtopo. Same Phase 4 gate.std_preclust,std_pca, preclustering measure-vector assembly,pop_preclust. Persist preclust arrays in the STUDY dict matching EEGLAB layout so.studyround-trips with Phase 5a's save path.std_kmeans/std_dipoleclust,std_editset,pop_clust,pop_clustedit, cluster-membership plotting hooks.pop_*:return_com=True, replace placeholder inmenu_actions, extendtests/test_console_workspace.pyfor namespace/history sync, capture visual parity screenshots via.agents/skills/eeglab-gui-visual-parity/.pop_*rather than as a standalone PR.Open questions for the human owner before sub-PR 1 starts
.dat*/.ica*binary sidecars, or EEGPrep-native sidecars + a converter? Former preserves MATLAB cross-tool workflows; latter is cleaner.kmeans/pca(requires seeded RNG matching MATLAB) or behavioral parity only?eeglab_data.set(small, in-repo) or check in a trimmed real STUDY? Affects test stability.pop_precompGUI for LIMO-only options, or hide them?No PR will be opened. Awaiting Phase 5a (#65) landing,
feature/study-standalone-completioncreation, and decisions on the open questions before starting sub-PR 1.[-]Phase 5b: STUDY precompute, measures, plotting, and clustering parity[/-][+]Phase 5b: STUDY precompute, measures, and plotting parity[/+]