Skip to content

Delete unreferenced legacy autosegmentation code - #3

Open
ehennestad wants to merge 1 commit into
fix-batch-r1-correctnessfrom
fix-batch-r2-dead-code
Open

ehennestad wants to merge 1 commit into
fix-batch-r1-correctnessfrom
fix-batch-r2-dead-code

Conversation

@ehennestad

Copy link
Copy Markdown
Contributor

Summary

Batch R2 from the module review: dead code, stacked on #2. Pure deletions; no behaviour changes.

Deleted (10 files, no references anywhere)

  • +autosegmentation/+able (three files; used subplot and tic, and held two of the analyzer's unreachable-code sites)
  • +autosegmentation/+cnmf (five files; held two "output may be unset" sites)
  • +autosegmentation/+template/defaultOptions.m
  • +autosegmentation/+extract/ImviewerPlugin.m, a 187-line copy of ui.imviewer.EXTRACT that had diverged by 163 lines

References were checked in the module, in NANSEN core on the removal branch, and in the tests. NANSEN's RoiManager has an empty case 'cnmf' in its autosegmentation switch and calls nothing from these packages.

Kept on purpose

+autosegmentation/+suite2p/* and +autosegmentation/+extract/{run.m, @Options} stay: RoiManager's interactive autosegmentation reaches suite2p.run, extract.run and suite2p.Options through a wildcard import. They can go when that dispatch is reworked in the core-decoupling follow-up.

Not changed: the manifest entries

The review suggested moving the Neurodata Without Borders and Brain Observatory Toolbox entries out of the module manifest. That is not a module-only change: nansentools.generateRequirementsTxt writes every community-toolbox entry regardless of requirementLevel and installMissingAddons installs every resolved entry, so adding them to NANSEN core would install matnwb and the Brain Observatory Toolbox in every NANSEN CI run and every nansen_install, while removing them from the module alone would stop installing matnwb for two-photon users and break the tutorial loader, which looks "Brain Observatory Toolbox" up by name. Left as-is and noted in the review document for a decision.

🤖 Generated with Claude Code

Removes the able and cnmf autosegmentation packages, the template
options file and the autosegmentation copy of the EXTRACT imviewer
plugin. Nothing in the module, in NANSEN or in the tests references
them; NANSEN's RoiManager keeps an empty case for cnmf. The suite2p and
extract run functions and their Options classes stay because that
interactive dispatch still calls them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

78 tests  ±0   77 ✅ ±0   3s ⏱️ -2s
 8 suites ±0    1 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit fbe7199. ± Comparison against base commit 6c5040b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant