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

Update argument handling for --derivatives #425

Merged
merged 1 commit into from
May 9, 2024

Conversation

pvandyken
Copy link
Contributor

The initial implementation of bidsargs had --derivatives take the same arguments as previously specified in the template app: action="+". This made the argument alway look for one or more paths. This does not reflect the pybids api, which additionally takes True and False

The fix adjusts this so that --derivatives defaults to False, if provided by itself give True, and if provide with paths, gives a list of Path().

@pvandyken pvandyken added the bug Something isn't working label May 9, 2024
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.28%. Comparing base (156f58f) to head (5128790).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #425      +/-   ##
==========================================
+ Coverage   94.27%   94.28%   +0.01%     
==========================================
  Files          55       55              
  Lines        2183     2189       +6     
==========================================
+ Hits         2058     2064       +6     
  Misses        125      125              

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

The initial implementation of bidsargs had --derivatives take the same
arguments as previously specified in the template app: action="+". This
made the argument alway look for one or more paths. This does not
reflect the pybids api, which additionally takes True and False

The fix adjusts this so that --derivatives defaults to False, if
provided by itself give True, and if provide with paths, gives a list of
Path().
@pvandyken pvandyken force-pushed the fix/derivatives-argument branch from 1ead79d to 5128790 Compare May 9, 2024 18:36
@pvandyken pvandyken merged commit d7287f2 into khanlab:main May 9, 2024
37 checks passed
@pvandyken pvandyken deleted the fix/derivatives-argument branch May 9, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant