napari-imagej icon indicating copy to clipboard operation
napari-imagej copied to clipboard

Numeric type inputs have undesirable bounds

Open ctrueden opened this issue 2 years ago • 1 comments

Even for numbers that are not supposed to be bounded, they are hardcoded to [0, 1000) as min/max bounds. For example, the bundled Example_Script.js has many numeric inputs of various sizes, but most of them have no explicit min/max declarations, and so should not be bounded. But e.g. the oLong, which is a 64-bit signed long type, is still bounded at [0, 1000). If this is an issue with how we are using magic_gui, we should address it, or if it is a fundamental magic_gui limitation/bug, we should file a PR upstream.

ctrueden avatar Jul 26 '23 02:07 ctrueden

Yeah, that's tricky, as we are definitely bounded by magicgui/qt here - that's the default min/max for integer types, iirc.

We could probably start with a function like this one to cover Number/primitive minima/maxima

gselzer avatar Jul 26 '23 14:07 gselzer