kreshuklab / plant-seg

A tool for cell instance aware segmentation in densely packed 3D volumetric images
https://kreshuklab.github.io/plant-seg/
MIT License
88 stars 31 forks source link

Napari GUI: Parameter/config checking happens at widget runtime #209

Open qin-yu opened 6 months ago

qin-yu commented 6 months ago

Input should be checked and stopped at Napari interface before widget buttons get clicked.

qin-yu commented 5 months ago

What I meant was that widgets fails to run because input could be invalid. Now I want to make the checking while user is inputting.

qin-yu commented 4 months ago

This Issue refers to the parameters/configs put into the Napari GUI.

Actually some inputs are checked like

https://github.com/hci-unihd/plant-seg/blob/7acc49c0d5ecc0414898f11e179b83fc3a6367b2/plantseg/viewer/widget/io.py#L194

I also added some:

https://github.com/hci-unihd/plant-seg/blob/7acc49c0d5ecc0414898f11e179b83fc3a6367b2/plantseg/viewer/widget/predictions.py#L205

But configs/args put into functions still need to be checked by Pydantic.