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

Fix 3dFWHMx outputs #2373

Merged
merged 4 commits into from
Jan 17, 2018
Merged

Fix 3dFWHMx outputs #2373

merged 4 commits into from
Jan 17, 2018

Conversation

chrisgorgo
Copy link
Member

Fixes nipreps/mriqc#677

Changes proposed in this pull request

  • more robust handling of 3dFWHMx outputs

Copy link
Contributor

@oesteban oesteban left a 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


# handle newer versions of AFNI
if sout.size == 8:
outputs['fwhm'] = tuple(sout[0,:])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space after comma

outputs['fwhm'] = tuple(sout[0,:])
else:
outputs['fwhm'] = tuple(sout)

if self._acf:
outputs['acf_param'] = tuple(sout[1])
Copy link
Contributor

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?

else:
outputs['fwhm'] = tuple(sout)

if self._acf:
assert sout.size == 8, "Wrong number of elements in %s"%str(sout)
Copy link
Contributor

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!

@chrisgorgo chrisgorgo merged commit d9fc034 into nipy:master Jan 17, 2018
@mgxd mgxd added this to the 1.0 milestone Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants