Skip to content
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

Merged
merged 7 commits into from
Oct 16, 2023

Conversation

nvnieuwk
Copy link
Collaborator

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

Copy link
Collaborator

@mirpedrol mirpedrol left a 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
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

@nvnieuwk nvnieuwk merged commit 9d5060b into nextflow-io:master Oct 16, 2023
3 checks passed
@nvnieuwk nvnieuwk deleted the improve-samplesheet-typecasting branch October 16, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

number type in fromSamplesheet() doesn't work for floats
2 participants