Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
π€ Part of #207. This final phase decomposes the remaining large statistics and ICLabel/property modules and closes the replacement epic with integration evidence.
Summary
Finish the large-module decomposition work by restoring EEGLAB-predictable file ownership for statistics helpers and separating ICLabel/viewprops history glue, numerics, and rendering. Then run the closeout review and make sure no #197/#205 finding remains unaccounted for.
Scope
Covers remaining findings from #197/#205 including:
functions/statistics/_core.py: split the 1000+ line mega-module behind the existing thin re-export shims into focused implementation modules by stable ownership.plugins/ICLabel/pop_prop_extended.py: split pop/history/dialog glue, dipfit/classifier/PVAF numerics, and Matplotlib property-browser rendering.- Final audit pass over [Fable 5 Findings] Phase 4 β Architecture: kill duplication, fix ownership & decompose sprawlΒ #197 and [Fable 5 Findings] Phase 4b β large-file decomposition & behavior-changing consolidationsΒ #205 finding lists to ensure every item is fixed, explicitly superseded by an earlier phase, or deliberately reclassified with rationale.
- Final docs/help/test updates required by the preceding phases.
Acceptance Criteria
- Statistics implementations live in modules whose names match the public functions, with only genuinely shared helpers left in a private shared module.
- ICLabel/viewprops code is separated by ownership while preserving GUI behavior, history strings, and sample-data workflows.
- GUI changes have visual parity evidence attached to the phase PR if any visible layout/rendering changes occur.
- The final epic issue has a checked mapping from every remaining [Fable 5 Findings] Phase 4 β Architecture: kill duplication, fix ownership & decompose sprawlΒ #197/[Fable 5 Findings] Phase 4b β large-file decomposition & behavior-changing consolidationsΒ #205 item to a phase PR or explicit non-goal rationale.
- The epic branch passes focused tests, full non-slow tests where practical,
ruff check,ruff format --check,ty check, and./pre-commit.py --changed-from origin/develop.
References
AGENTS.md.agents/skills/eegprep-feature-development/SKILL.md.agents/skills/eeglab-gui-visual-parity/SKILL.mdfor viewprops GUI changes.agents/skills/github-pr-review/SKILL.mdfor final review.
/goal Prompt
/goal Complete Fable 5 architecture closeout Phase 6 from issue #<THIS_ISSUE>: split the statistics mega-module and ICLabel pop_prop_extended into maintainable EEGPrep-owned modules, preserve public APIs and GUI/history behavior, update tests/docs/help as needed, and perform final closeout mapping for all #197/#205 findings. Verify with focused and broad pytest, MATLAB parity where deterministic, GUI visual parity if visible rendering changes, ruff, format, ty, pre-commit, and a final PR review before declaring the epic ready.
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
suraj-ranganath commentedon Jun 12, 2026
π€ Completed by merged phase PR #219 into feature/fable5-architecture-closeout. The final verification pass is running on the epic branch; #207 remains open for the epic PR.