optional=true for param type=float

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

optional=true for param type=float

Michael Pheasant

I want a float parameter which is optional, so the field displayed to
the user is blank, and validated as float if user enters a value, i
try this:

    <param name="abc" type="float" optional="True" value="" label="a number" />

but get the "A real number is required" error.

Looking in the code, "class FloatToolParameter( TextToolParameter )"
in  http://bitbucket.org/galaxy/galaxy-central/src/tip/lib/galaxy/tools/parameters/basic.py
it seems like the optional parameter handling is missing.


galaxy-dev mailing list
[hidden email]