Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
🤖 Part of #207. This phase decomposes the large I/O, GUI renderer, and FIR ownership modules that could not be split safely in the behavior-preserving pass.
Summary
Move large mixed-concern modules toward EEGPrep’s EEGLAB-parity ownership map without changing behavior: popfunc wrappers stay thin, GUI renderer helpers stop being a stateless class namespace, and firfilt owns FIR design code instead of clean_rawdata private helpers.
Scope
Covers remaining findings from #197/#205 including:
functions/popfunc/pop_load_frombids.py: extract NEO raw-reader and montage/coordinate inference into appropriate shared reader/helper modules; leave BIDS orchestration and history in the pop wrapper.functions/guifunc/qt.py: splitQtDialogRendererstaticmethod namespace by widget/layout/dialog ownership or convert to module-level helpers with stable call sites.- FIR ownership: move
firws,firwsord, and related FIR design helpers fromplugins/clean_rawdata/private/sigproc.pyintoplugins/firfilt, with clean_rawdata importing downward from firfilt. - Any related GUI FIR band-edge/desired-amplitude helper duplication if it can be resolved without changing user-visible filtering behavior.
Acceptance Criteria
pop_load_frombidsremains user-facing BIDS orchestration/history glue and no longer owns raw reader or montage-matching engines.- Extracted BIDS reader/montage helpers have direct tests plus existing BIDS import tests.
- Qt renderer refactor preserves visual parity for representative dialogs; side-by-side screenshots are attached if visible behavior changes or layout is touched.
- FIR helper ownership matches EEGLAB/firfilt semantics and avoids imports from clean_rawdata private modules.
- No runtime dependency on vendored EEGLAB or uninstalled optional tooling.
References
AGENTS.md.agents/skills/eegprep-feature-development/SKILL.md.agents/skills/eeglab-gui-visual-parity/SKILL.mdfor Qt dialog changes- EEGLAB references for BIDS/plugin/firfilt ownership.
/goal Prompt
/goal Complete Fable 5 architecture closeout Phase 5 from issue #<THIS_ISSUE>: decompose pop_load_frombids, Qt dialog rendering helpers, and FIR ownership while preserving observable behavior. Keep popfunc wrappers thin, preserve GUI visual parity and BIDS/FIR numerical behavior, add direct tests for extracted helpers and existing workflow tests, attach GUI side-by-side images if dialog layout changes, and run focused pytest plus ruff, format, ty, pre-commit, and visual parity checks where relevant.
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
suraj-ranganath commentedon Jun 12, 2026
🤖 # Research
Duplicate-work preflight found no open PR for #212, QtDialogRenderer, or firws/firfilt ownership; the only BIDS hit is the parent Fable 5 epic PR #206. Root cause is ownership drift:
pop_load_frombidsowns raw Neo loading and packaged montage matching,QtDialogRenderercarries unrelated stateless widget/layout/validation/callback helpers, and clean_rawdata private helpers still own FIR design code that firfilt should provide.Relevant code
src/eegprep/functions/popfunc/pop_load_frombids.py#L135-L442- raw EEG readerssrc/eegprep/functions/popfunc/pop_load_frombids.py#L901-L1077- montage inferencesrc/eegprep/functions/guifunc/qt.py#L48-L144- dialog rendering entrypointsrc/eegprep/functions/guifunc/qt.py#L415-L1311- stateless callbacks/validation helperssrc/eegprep/plugins/clean_rawdata/private/sigproc.py#L12-L115- FIR design helpersProposed Fix
Extract raw BIDS EEG loading to
plugins/EEG_BIDS/raw.pyand montage matching toplugins/EEG_BIDS/montage.py, leavingpop_load_frombidsas the BIDS metadata/channel/event/history orchestrator. Move clean_rawdata FIR design helpers intoplugins/firfilt/design.py, update clean_rawdata callers to import downward from firfilt, and keep numerical formulas unchanged. Refactor Qt renderer stateless helpers into module-level ownership groups while preservingQtDialogRenderercall sites used by tests and visual capture; run focused BIDS, FIR, and GUI tests before broad lint/type checks.suraj-ranganath commentedon Jun 12, 2026
🤖 Completed by merged phase PR #216 into feature/fable5-architecture-closeout.