quantumjot / btrack

Bayesian multi-object tracking
https://btrack.readthedocs.io
MIT License
310 stars 50 forks source link

[FEATURE REQUEST] Min/max values for numeric `napari` widgets should be specified #366

Closed paddyroddy closed 11 months ago

paddyroddy commented 11 months ago

For QSpinBox and QDoubleSpinBox the minimum to maximum range is 0-99 and 0-99.99 respectively. We should allow acceptable ranges (or at least sensible ranges).

This has been done already for some as seen here https://github.com/quantumjot/btrack/blob/8e4da110c9662d7993f58753c1d7e7dd22e09a3a/btrack/napari/widgets/_motion.py#L20

It is not sufficient to only do it in pydantic. The widget would still allow you to go beyond that.

quantumjot commented 11 months ago

Some default ranges:

Max search radius 0-1000 Max lost 0-10 P(not track) 0-1 Accuracy 0.1-10 P 0-500 Q 0-500 R 0-500

paddyroddy commented 11 months ago

There are others, but I'll close this once #376 is merged