-
Notifications
You must be signed in to change notification settings - Fork 536
MAINT: ensure interface _cmd only includes executable #2674
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
nipype/interfaces/afni/preprocess.py
Outdated
| outputs['warped_source'] = os.path.abspath("Qwarp_PLUS.nii.gz") | ||
| outputs['warped_base'] = os.path.abspath("Qwarp_MINUS.nii.gz") | ||
| outputs['source_warp'] = os.path.abspath("Qwarp_PLUS_WARP.nii.gz") | ||
| outputs['base_warp'] = os.path.abspath("Qwarp_MINUS_WARP.nii.gz") |
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.
I would drop _list_outputs. This should be handled by Qwarp._list_outputs() and correctly handle non-default out_file selections.
Codecov Report
@@ Coverage Diff @@
## master #2674 +/- ##
==========================================
+ Coverage 67.61% 67.64% +0.02%
==========================================
Files 340 340
Lines 43076 43060 -16
Branches 5333 5333
==========================================
- Hits 29127 29126 -1
+ Misses 13246 13232 -14
+ Partials 703 702 -1
Continue to review full report at Codecov.
|
effigies
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.
LGTM. Minor comment.
nipype/interfaces/afni/preprocess.py
Outdated
| argstr='-source %s', | ||
| mandatory=True, | ||
| exists=True, | ||
| copyfile=False) |
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.
Same as in superclass.
Summary
Fixes nipreps/fmriprep#1236 .
List of changes proposed in this PR (pull-request)
As discussed in nipreps/fmriprep#1235 (comment), this PR strips down "helper interfaces"
_cmdto only the executable, and adds the necessary arguments as defaults in the inputspec.Acknowledgment