-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix counterintuitive behavior of has_n_cols for csv #21391
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
base: dev
Are you sure you want to change the base?
Conversation
bernt-matthias
left a comment
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.
Good idea.
Do you think we should cover other tabular datatypes as well:
https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/datatypes/tabular.py. Guess with csv we have at least the most frequent one.
Could you update the docs:
galaxy/lib/galaxy/tool_util/xsd/galaxy.xsd
Line 2600 in 97452de
| <xs:element name="has_n_columns"> |
|
I'm on the fence on this, I fear that having a default changing with the datatype could be more confusing than helpful. The |
Then a profile version could be an idea. |
i think i understand this sentence, and i think i like it lol |
|
fwiw looking through the other tabular data types, they appear at glance to all be tab delimited except csv. so the existing default works except for csv, in which case its highly confusing and feels like a bug. |
|
ok. well, ive updated the docs i was pointed to. and ive taken a look around and think i see how to make the profile version thing work. so let me know if thats something worth pursuing. |
IMO Yes. |
basically encountered counterintuitive behavior where has_n_columns assertion in tests for a tool that output csv kept failing saying it only saw 1 column in the file. delimiter apparently defaults to tab for csv ftype. apparently i can explicitly set sep for csv to make this work, which is great, outside the fact i had no idea i needed to. id rather not need to, so this pr represents a proposal to change the delimiter based on ftype.
How to test the changes?
(Select all options that apply)
License