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
Hi

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.

Cheers

M
_______________________________________________
galaxy-dev mailing list
[hidden email]
http://lists.bx.psu.edu/listinfo/galaxy-dev