Repurposing PredictionFileInput to work for thresholding as well- renamed this to FileInputWidget
Since prediction and thresholding track similar state- created base class FileInputModel
PredictionModel extends FileInputModel- adds functions which dispatch prediction-related tasks
Currently the thresholding view uses FileInputModel directly- but planning on changing this so that I have a model specifically for this view that dispatches thresholding-related tasks.
Getting rid of old pre/post processing code.
Files changed
src/allencell_ml_segmenter/core/file_input_model.py: ABC for PredictionModel and in the future- PostProcessModel
src/allencell_ml_segmenter/postprocess/postprocess_view.py: UI for thresholding
src/allencell_ml_segmenter/prediction/file_input_widget.py: Refactor to work with thresholding as well
src/allencell_ml_segmenter/prediction/model.py: Now extends FileInputModel, an ABC. Only contains functions that dispatch events related to prediction, also removed unused code from old implementation of pre/post processing.
src/allencell_ml_segmenter/styles/thresholding_view.qss: Stylesheet for thresholding
Thresholding UI changes, heres what it looks like
This is based on Thao's UI available here: https://www.figma.com/design/kiqNACOut8sGePs8tr7W57/Segmenter-ML---napari-plugin?node-id=1634-17590&node-type=frame
Summary
PredictionFileInput
to work for thresholding as well- renamed this toFileInputWidget
FileInputModel
FileInputModel
- adds functions which dispatch prediction-related tasksFileInputModel
directly- but planning on changing this so that I have a model specifically for this view that dispatches thresholding-related tasks.Files changed
FileInputModel
, an ABC. Only contains functions that dispatch events related to prediction, also removed unused code from old implementation of pre/post processing.