Skip to content

Commit c9e1d26

Browse files
committed
Fix 3dFWHMx outputs
1 parent 6239693 commit c9e1d26

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,15 +1315,20 @@ def _list_outputs(self):
13151315
outputs['out_detrend'] = Undefined
13161316

13171317
sout = np.loadtxt(outputs['out_file']) #pylint: disable=E1101
1318+
1319+
# handle newer versions of AFNI
1320+
if sout.size == 8:
1321+
outputs['fwhm'] = tuple(sout[0,:])
1322+
else:
1323+
outputs['fwhm'] = tuple(sout)
1324+
13181325
if self._acf:
13191326
outputs['acf_param'] = tuple(sout[1])
1320-
sout = tuple(sout[0])
13211327

13221328
outputs['out_acf'] = op.abspath('3dFWHMx.1D')
13231329
if isinstance(self.inputs.acf, (str, bytes)):
13241330
outputs['out_acf'] = op.abspath(self.inputs.acf)
13251331

1326-
outputs['fwhm'] = tuple(sout)
13271332
return outputs
13281333

13291334

0 commit comments

Comments
 (0)