allow empyt value for optional numeric inputs#19
allow empyt value for optional numeric inputs#19bernt-matthias wants to merge 2 commits intoWorkflowConversion:masterfrom
Conversation
d839fbd to
30f525a
Compare
|
@b-schubert @andras86 @bgruening : any chance to get this merged? |
|
In which cases is this needed? |
|
Happens for instance for this parameter: I assumed in my test cases that there might be mandatory arguments for which no default is available. |
|
Hmm I dont know if this should happen. If I designed a tool, I would avoid such parameters. |
|
I had a tool developer in mind who want's to implement a parameter for which no useful default exists, but depends in a non-computable way on the input. Such a parameter could be for instance a taxon name for choosing a reference data base. Or a case where the developer wants to "force" the user to think about the parameter. |
|
I mean in general I do not care much. But you need to be careful with dependent programs/code that do a validation on provided CTDs (e.g. GenericKnimeNodes). They will probably start to complain before the user even does anything. |
|
Seems to boil down to the question if the empty string (ie the default given by I assumed that tools won't accept that the user leaves this empty and only run when a value has been entered. |
and shorten/empty if necessary
|
I think we had quite some trouble in the past with optional vs. empty parameters. I would only add this if really required |
|
Currently I can live with it :) |
The CTDConverter fails for
value=""for numeric non-mandatory inputs:Not sure if there is a better way to do it (e.g. alternatively
""could be removed from the list)