This Jython command results in a runtime error when 5.6 is selected:
x= getParam( 'x', 7, 'float param', [ 5.6, 7, 10.0 ] )
This should either throw an error, or the logic for determining type should consider the example types. I think it would be more clear if it would just throw an error, so that there is just one place that determines type.
I've made it so that if the type implied by the default is int, then Autoplot will check that all the allowed values are also ints and fail immediately with a clear message.
Last edit: Jeremy Faden 2023-08-31
Note that this is a change in the standard Jython code which is imported, which is only updated occasionally. I plan on updating this later this fall.