You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow-up: STUDY plotting, precompute, and selection long-tail helpers #149
🤖 Follow-up from Phase 7 (#138) of epic #131.\n\nRows covered: remaining Phase 6 STUDY rows still outside the implemented design, clustering, cache-reader, and plotting surfaces after Phases 6-7.\n\nScope: either implement needed STUDY plotting/precompute/selection helpers with multi-dataset tests and GUI evidence where user-facing, or classify each as consolidated, external-dependency, MATLAB-runtime, or stale with row-level rationale.\n\nNon-goal: do not one-for-one port EEGLAB STUDY GUI internals without an EEGPrep workflow need.
Human review and approval before implementation begins
Issue is too large for a single PR (~78 unresolved rows across plotting, cache, design, clustering, and parameter dialogs); posting design comment instead.
Research
After PR #144 (Phase 6 STUDY depth), the parity matrix 4_study_group_depth category still has 74 rows at port and 4 at partial against 48 implemented and 7 external_dependency_skip. PR #144 introduced unified helpers (std_readdata, _std_measureplot, _cluster_utils) that consolidate many EEGLAB per-measure entry points, but the matrix rows for those entry points were never reclassified — so the gap looks larger than it is. Root cause: Phase 6 closed the workflow surface (design, measure precompute, clustering basics, LIMO limitation stubs) but skipped row-level disposition for measure-specific readers, plotting wrappers, parameter dialogs, and helper utilities.
Treat this as triage-first, not implement-first. Most of the 78 rows already have an EEGPrep equivalent; the matrix just needs disposition. Split into four PRs sized to merge cleanly into feature/eeglab-core-parity-completion.
PR-1: row-level triage (no runtime code; matrix + docs only, ~150 LOC of JSON edits)
external_dependency_skip — needs Fieldtrip/LIMO/dipfit: std_dipplot, std_dipoleclusters, std_pac, std_pacplot, std_movie, std_interp (Fieldtrip neighbours), neural_net. Match the existing LIMO row pattern.
matlab_runtime_skip — MATLAB GUI/figure shims with no standalone need: std_figtitle, std_detachplots, std_reset, eeglabciplot, gethashcode, toporeplot, std_propplot, std_erpimageplot (delegates to std_erpimage which is already MATLAB-only viewer surface unless we explicitly port).
port — keep ONLY for rows that are user-facing, missing, and feasible standalone. Short list (see PR-2/3/4 below).
Acceptance: every row has non-empty eegprep_equivalent or rationale plus updated test_notes. Run the matrix validator (whichever Phase 1 script enforces taxonomy in tests/test_parity_matrix*.py) and ./pre-commit.py --fix.
PR-2: user-facing STUDY parameter dialogs (~600 LOC + tests)
Implement the pop_*params family that gate plot defaults from menus: pop_erpparams, pop_specparams, pop_erspparams, pop_statparams, pop_erpimparams, pop_dipparams. Each is a small dialog over STUDY.etc.<measure>params with return_com=True, history, and inputgui parity vs. EEGLAB screenshots. Add pop_<name>.md help files and visual parity cases under tools/visual_parity. Also close pop_clust, pop_study, pop_studydesignpartial → implemented if they are partial only because parameter dialogs are missing.
PR-3: STUDY consistency + selection helpers (~400 LOC + tests)
Port the small subset that real workflows need but no current helper covers: std_checkconsist, std_checkdesign, std_indvarmatch, std_getindvar, std_gettrialsind, std_maketrialinfo, std_combtrialinfo, std_findsameica, std_selsubject, std_substudy, std_rmdat, std_rmalldatafields. These are pure-Python data-structure helpers used by std_makedesign/pop_studydesign and parity tests; no GUI. One test file tests/test_study_consistency.py with multi-dataset sample_data fixtures.
PR-4: measure-specific readers split if telemetry warrants (~300 LOC; only if a workflow proves a per-measure entry is needed)
Default plan: keep std_readdata as the single API and mark std_readerp etc. consolidated in PR-1. If a Phase 7 reviewer or downstream consumer needs the per-measure call signature for EEGLAB code-paste parity, add thin wrappers that forward datatype="erp"/etc. and return EEGLAB-shaped tuples. Do not write this PR speculatively; it is contingent on PR-1 review feedback.
std_movie, std_dipplot, std_dipoleclusters: defer until a dipfit/Fieldtrip Python stack lands; classify external_dependency_skip for now.
EEGBrowser-style scrolling viewers (std_erpimage-as-figure): cover under the EEGBrowser menu_placeholders exclusion already in repo.
Open questions for reviewer
Is consolidated the right matrix status for measure-specific readers/plotters that route through a unified helper, or should we keep port with a follow-up issue per row?
Should pop_*params dialogs persist into STUDY.etc.*params only, or should they also patch _default_target in _std_measureplot so console-only users see the saved defaults?
Do we need MATLAB parity tests for std_checkconsist/std_checkdesign (they are deterministic struct walks) or are Python-only multi-dataset tests sufficient?
Confirm target branch: feature/eeglab-core-parity-completion (matches the rest of the epic) rather than develop.
🤖 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.
Activity
claude commentedon Jun 6, 2026
🤖 Plan:
feature/eeglab-core-parity-completionport/partialafter PR [STUDY] Add group-level depth helpers #144Issue is too large for a single PR (~78 unresolved rows across plotting, cache, design, clustering, and parameter dialogs); posting design comment instead.
Research
After PR #144 (Phase 6 STUDY depth), the parity matrix
4_study_group_depthcategory still has 74 rows atportand 4 atpartialagainst 48implementedand 7external_dependency_skip. PR #144 introduced unified helpers (std_readdata,_std_measureplot,_cluster_utils) that consolidate many EEGLAB per-measure entry points, but the matrix rows for those entry points were never reclassified — so the gap looks larger than it is. Root cause: Phase 6 closed the workflow surface (design, measure precompute, clustering basics, LIMO limitation stubs) but skipped row-level disposition for measure-specific readers, plotting wrappers, parameter dialogs, and helper utilities.Relevant code
src/eegprep/functions/studyfunc/std_readdata.py- unified cache reader covering erp/spec/ersp/itc/toposrc/eegprep/functions/studyfunc/_std_measureplot.py- shared plot helper used bystd_erpplot/std_specplot/std_erspplot/std_itcplotsrc/eegprep/functions/studyfunc/_cluster_utils.py- shared cluster/channel index helpers (std_chaninds,std_changroup, etc.)docs/parity/eeglab_core_parity_matrix.json- 78 STUDY rows stillport/partialagainstphase_6.notes/eeglab-migration-gap-audit.md#L146-L164- original audit list (5 plot helpers, 7 readers, 4 clustering details, 4 consistency)Proposed Fix
Treat this as triage-first, not implement-first. Most of the 78 rows already have an EEGPrep equivalent; the matrix just needs disposition. Split into four PRs sized to merge cleanly into
feature/eeglab-core-parity-completion.PR-1: row-level triage (no runtime code; matrix + docs only, ~150 LOC of JSON edits)
For each unresolved row, set status from one of:
consolidated— already covered by EEGPrep helper, witheegprep_equivalentpointer. Candidates:std_readerp/std_readspec/std_readersp/std_readitc/std_readtopo→std_readdata;std_plot/std_plotcurve/std_plottf→_std_measureplot;std_chaninds/std_changroup→_cluster_utils;std_erp/std_ersp/std_spec/std_topo→std_precomp;std_loadalleeg→pop_loadstudy;std_serialize→pop_savestudy;std_filecheck/std_fileinfo→std_checkfiles;std_getdataset/std_selectdataset→pop_study/_study_utils.external_dependency_skip— needs Fieldtrip/LIMO/dipfit:std_dipplot,std_dipoleclusters,std_pac,std_pacplot,std_movie,std_interp(Fieldtrip neighbours),neural_net. Match the existing LIMO row pattern.matlab_runtime_skip— MATLAB GUI/figure shims with no standalone need:std_figtitle,std_detachplots,std_reset,eeglabciplot,gethashcode,toporeplot,std_propplot,std_erpimageplot(delegates tostd_erpimagewhich is already MATLAB-only viewer surface unless we explicitly port).port— keep ONLY for rows that are user-facing, missing, and feasible standalone. Short list (see PR-2/3/4 below).Acceptance: every row has non-empty
eegprep_equivalentorrationaleplus updatedtest_notes. Run the matrix validator (whichever Phase 1 script enforces taxonomy intests/test_parity_matrix*.py) and./pre-commit.py --fix.PR-2: user-facing STUDY parameter dialogs (~600 LOC + tests)
Implement the
pop_*paramsfamily that gate plot defaults from menus:pop_erpparams,pop_specparams,pop_erspparams,pop_statparams,pop_erpimparams,pop_dipparams. Each is a small dialog overSTUDY.etc.<measure>paramswithreturn_com=True, history, andinputguiparity vs. EEGLAB screenshots. Addpop_<name>.mdhelp files and visual parity cases undertools/visual_parity. Also closepop_clust,pop_study,pop_studydesignpartial→implementedif they are partial only because parameter dialogs are missing.PR-3: STUDY consistency + selection helpers (~400 LOC + tests)
Port the small subset that real workflows need but no current helper covers:
std_checkconsist,std_checkdesign,std_indvarmatch,std_getindvar,std_gettrialsind,std_maketrialinfo,std_combtrialinfo,std_findsameica,std_selsubject,std_substudy,std_rmdat,std_rmalldatafields. These are pure-Python data-structure helpers used bystd_makedesign/pop_studydesignand parity tests; no GUI. One test filetests/test_study_consistency.pywith multi-datasetsample_datafixtures.PR-4: measure-specific readers split if telemetry warrants (~300 LOC; only if a workflow proves a per-measure entry is needed)
Default plan: keep
std_readdataas the single API and markstd_readerpetc.consolidatedin PR-1. If a Phase 7 reviewer or downstream consumer needs the per-measure call signature for EEGLAB code-paste parity, add thin wrappers that forwarddatatype="erp"/etc. and return EEGLAB-shaped tuples. Do not write this PR speculatively; it is contingent on PR-1 review feedback.Non-goals (explicit deferrals)
_limo_limitations; do not expand here.std_movie,std_dipplot,std_dipoleclusters: defer until a dipfit/Fieldtrip Python stack lands; classifyexternal_dependency_skipfor now.std_erpimage-as-figure): cover under the EEGBrowser menu_placeholders exclusion already in repo.Open questions for reviewer
consolidatedthe right matrix status for measure-specific readers/plotters that route through a unified helper, or should we keepportwith a follow-up issue per row?pop_*paramsdialogs persist intoSTUDY.etc.*paramsonly, or should they also patch_default_targetin_std_measureplotso console-only users see the saved defaults?std_checkconsist/std_checkdesign(they are deterministic struct walks) or are Python-only multi-dataset tests sufficient?feature/eeglab-core-parity-completion(matches the rest of the epic) rather thandevelop.Awaiting human sign-off before opening any PR.
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.