Repository navigation
[pkg] Move dev tooling out of the wheel and clean dead code (Fable 5 Phase 5) - #201
Conversation
Part of the Fable 5 Findings epic (#193); addresses issue #198. Standalone/runtime hygiene: - Move developer/parity tooling out of the installed wheel into tools/: visual_capture.py -> tools/visual_parity/, stage_comparison.py -> tools/eeg_bids/, iclabel_net_load_py_measures.py -> tools/iclabel/ (refactored to import the canonical ICLabelNet, removing the float64/float32 model drift). pop_reref_helper.py -> scripts/. - Make eeglabcompat import side-effect-free (lazy temp dir), so importing core modules no longer creates a temp directory at import time. - Resolve the packaged montages dir via importlib.resources instead of a __file__ dirname chain in pop_load_frombids. Dependencies & docs: - Drop the redundant eeglabio optional extra that duplicated the mandatory dependency. eeglabio stays required (used transitively via mne.export for .set writing); installation docs updated to match. - Remove conda-forge install instructions for this unpublished pre-release; make the EEGobj example in contributing.rst actually runnable. - Fix the README docs badge and correct CI branch triggers (main -> develop). Dead code: - Remove _currentset_list (menu_actions), _reject_unsupported_options (pop_newcrossf), the unused withindex parameter (pop_chansel), the custom_randperm no-op wrapper (runica; hoist `import time`), an unraisable except in eegrej, and the unread top-level STUDY['preclust'] seed (_study_utils).
|
Claude finished @suraj-ranganath's task in 4m 10s —— View job Code review — PR #201
I verified the substantive removals and moves against their call sites; almost all of the diff is safe dead-code/packaging cleanup. One change looks like it could silently break CI. BlockingNone. Important
Nits
Test gapsNone required for this change set. The behavioral edits are pure removals of unused params/helpers:
EEGLAB parity notes
|
|
🤖 Specification (PR >500 LOC; full per-finding detail in #198, epic #193) Problem. Developer/parity tooling shipped inside the installed wheel ( Approach. Moved the four dev tools to eeglabio nuance. The finding's "never imported" premise was inaccurate: Tests. |
| on: | ||
| push: | ||
| branches: [ main, develop ] | ||
| branches: [ master, develop ] |
There was a problem hiding this comment.
Severity: important — The push/PR triggers were switched from main to master (this line and the pull_request line below). This stack's base and the repo's main branch are main, and there's no master branch in the remote — so if main is the default branch, this silently disables CI on every push/PR to main, the opposite of the intended fix. Please confirm the actual default branch name; if it's main, revert both lines back to [ main, develop ] (or include both).
|
🤖 Re: the
So On the |
Move developer and parity tools (visual_capture, stage_comparison, the ICLabel measure loader, pop_reref_helper) out of the installed package into tools and scripts, make eeglabcompat import side-effect-free, and resolve packaged montages via importlib.resources. Drop the redundant eeglabio optional extra, fix the install and contributing docs, the README badge and the CI branch triggers, and delete several dead helpers and an unused parameter.
Fixes #198