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

SCHEMA: Allow surrounding whitespace in integers #1742

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

effigies
Copy link
Collaborator

Discovered thanks to @ericearl's magical database. Some people generated TSVs that space-pad their numerical columns. Actual tools don't have a problem interpreting these numbers (pandas, deno, Python), just our regular expressions that we use to validate the columns as strings.

@effigies effigies added schema Issues related to the YAML schema representation of the specification. Patch version release. exclude-from-changelog This item will not feature in the automatically generated changelog labels Mar 21, 2024
@effigies effigies requested a review from rwblair March 21, 2024 21:09
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.93%. Comparing base (4c642bd) to head (32825ff).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1742   +/-   ##
=======================================
  Coverage   87.93%   87.93%           
=======================================
  Files          16       16           
  Lines        1351     1351           
=======================================
  Hits         1188     1188           
  Misses        163      163           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies
Copy link
Collaborator Author

@sappelhoff Would appreciate your thoughts here.

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some people generated TSVs that space-pad their numerical columns

I am interested in why people would do that.

However if as you say the most commonly used tools do not have a problem parsing this, I am +1 for the changes here.

@effigies
Copy link
Collaborator Author

The example I saw was so that onsets <10 would line up with the onsets >=10.

@effigies effigies merged commit bd08602 into bids-standard:master Mar 23, 2024
27 checks passed
@effigies effigies deleted the schema/number_whitespace branch March 23, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog schema Issues related to the YAML schema representation of the specification. Patch version release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants