Skip to content

Redesign - #41

Merged
spficklin merged 2 commits into
devfrom
redesign
Nov 3, 2025
Merged

Redesign#41
spficklin merged 2 commits into
devfrom
redesign

Conversation

@AdenAthar

Copy link
Copy Markdown
Collaborator

No description provided.

spficklin and others added 2 commits October 22, 2025 12:00
- Add user-configurable --cpu parameter to Analysis base class
  - Default 0 (auto mode): uses 80% of available cores
  - Allows users to specify exact number of cores to use
  - Automatically caps at maximum available cores

- Complete refactoring of child analyses to new pattern:
  - BlushColor: Remove performAnalysis(), add _preRun()/_postRun()
  - PeelColor: Remove performAnalysis(), add _preRun()/_postRun()
  - SuperficialScald: Remove performAnalysis(), add _preRun()/_postRun()
  - StarchArea: Fix empty _preRun() to initialize image_io
  - Segmentation: Add stub methods (keeps custom performAnalysis())

- All analyses now use centralized multiprocessing in Analysis base class
- Eliminates ~90 lines of duplicated parallelization code
- Rename _rateImageInstance() to _processImage() for clarity

Tested all 5 analyses successfully with various CPU counts (4-12 cores).
@spficklin
spficklin merged commit 6d8da70 into dev Nov 3, 2025
@spficklin
spficklin deleted the redesign branch November 20, 2025 00:20
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.

2 participants