Skip to content

Conversation

chrisgorgo
Copy link
Member

Fixes nipreps/mriqc#677

Changes proposed in this pull request

  • more robust handling of 3dFWHMx outputs

@chrisgorgo chrisgorgo requested a review from oesteban January 14, 2018 19:59
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