Skip to content

Conversation

@AdenAthar
Copy link
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).
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.

3 participants