-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve samplesheet typecasting #113
Improve samplesheet typecasting #113
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! We should update the changelog :)
log.debug("Could not convert ${input} to a float. Trying to convert to a double.") | ||
} | ||
|
||
def double result = input as double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we catch an error here too? And maybe throw a more explanatory message saying that the input is not a value. Although this will in theory be detected by the validation before the channel conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that was my reasoning too, the values should be compatible when they are validated so they shouldn't really fail
Fixes #112
=> Also adds the
null
type to be a bit closer to full support of all types.I'll handle
array
in the hackathon :p