-
Notifications
You must be signed in to change notification settings - Fork 533
Fix 3dFWHMx outputs #2373
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
Fix 3dFWHMx outputs #2373
Conversation
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, two minimal comments
nipype/interfaces/afni/utils.py
Outdated
|
||
# handle newer versions of AFNI | ||
if sout.size == 8: | ||
outputs['fwhm'] = tuple(sout[0,:]) |
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.
missing space after comma
nipype/interfaces/afni/utils.py
Outdated
outputs['fwhm'] = tuple(sout[0,:]) | ||
else: | ||
outputs['fwhm'] = tuple(sout) | ||
|
||
if self._acf: | ||
outputs['acf_param'] = tuple(sout[1]) |
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.
wouldn't this be appropriate to set if sout.size == 8
as well?
nipype/interfaces/afni/utils.py
Outdated
else: | ||
outputs['fwhm'] = tuple(sout) | ||
|
||
if self._acf: | ||
assert sout.size == 8, "Wrong number of elements in %s"%str(sout) |
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.
spaces around %
, otherwise looks great!
Fixes nipreps/mriqc#677
Changes proposed in this pull request