Closed paddyroddy closed 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.
pydantic
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
There are others, but I'll close this once #376 is merged
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.