-
Notifications
You must be signed in to change notification settings - Fork 532
[ENH] add -dsort option to TProject #2623
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2623 +/- ##
==========================================
- Coverage 67.6% 67.56% -0.04%
==========================================
Files 339 339
Lines 42820 42821 +1
Branches 5290 5290
==========================================
- Hits 28948 28932 -16
- Misses 13189 13207 +18
+ Partials 683 682 -1
Continue to review full report at Codecov.
|
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.
Thanks for the contribution! I left a comment below - also be sure to run make specs
after the changes to update the autotest
nipype/interfaces/afni/preprocess.py
Outdated
desc="""Remove the 3D+time time series in dataset fset. | ||
++ That is, 'fset' contains a different nuisance time | ||
series for each voxel (e.g., from AnatICOR). | ||
++ Multiple -dsort options are allowed.""", |
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.
Since multiple -dsort
options are allowed, let's allow multiple files.
Here's an example, but you'll want to use InputMultiObject
instead of InputMultiPath
nipype/nipype/interfaces/dcm2nii.py
Lines 342 to 344 in 704b97d
series_numbers = InputMultiPath( | |
traits.Str(), | |
argstr='-n %s...', |
Thanks for pointing out that this can take multiple files! I changed it, checked that it produced a correct command line, and ran make specs. It looks like the test failed while trying to download something. |
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.
LGTM, one last comment - looks like the ci failure is unrelated.
nipype/interfaces/afni/preprocess.py
Outdated
File( | ||
exists=True, | ||
copyfile=False), | ||
argstr="%s", |
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.
you can change this to argstr="-dsort %s..."
and it'll apply the same behavior you added in _format_arg
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.
@mattcieslak no worries, we love getting new contributions! the only thing missing is changing dsort's argstr (see above) and removing the _format_arg
method
@mattcieslak this was very close! mind if I reopen? |
Should it stay open until 1.1.0? Or should I remove the |
Adds a -dsort option to
nipype.interfaces.afni.TProject