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

Strip possibly present trailing / (os.sep) before adding one #1921

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

yarikoptic
Copy link
Collaborator

@yarikoptic yarikoptic commented Sep 3, 2024

Without that users must have trailing / removed, but nobody checks for that etc. So now we have "raw//" etc, e.g. at
https://bids-specification.readthedocs.io/en/latest/derivatives/common-data-types.html#example-use-of-a-descriptionstsv-file

With this change it would make it easier on user and guaranteed to render consistently correctly

  • Note also that we use os.sep there in the code making rendering dependent on OS on which it is rendered. I will add commit to change to posixpath.sep.

Without that users must have trailing / removed, but nobody checks for that etc.
So now we have "raw//" etc, e.g. at
https://bids-specification.readthedocs.io/en/latest/derivatives/common-data-types.html#example-use-of-a-descriptionstsv-file

With this change it would make it easier on user and guaranteed to render consistently correctly
@effigies effigies added the exclude-from-changelog This item will not feature in the automatically generated changelog label Sep 3, 2024
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.23%. Comparing base (183499c) to head (81e7a43).
Report is 114 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1921   +/-   ##
=======================================
  Coverage   87.23%   87.23%           
=======================================
  Files          16       16           
  Lines        1410     1410           
=======================================
  Hits         1230     1230           
  Misses        180      180           

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

@yarikoptic
Copy link
Collaborator Author

ping @bids-standard/maintainers on this trivial PR

@rwblair rwblair merged commit 3fc4f65 into bids-standard:master Sep 10, 2024
27 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants