-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow empyt value for optional numeric inputs #19
base: master
Are you sure you want to change the base?
allow empyt value for optional numeric inputs #19
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)