Skip to content

Commit ec7ec8c

Browse files
committed
resolve conflict
2 parents 1f341bd + d9fc034 commit ec7ec8c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Upcoming release (0.14.1)
2-
================
2+
=========================
33

4+
* FIX: Robustly handled outputs of 3dFWHMx across different versions of AFNI (https://github.com/nipy/nipype/pull/2373)
45
* FIX: Cluster threshold in randomise + change default prefix (https://github.com/nipy/nipype/pull/2369)
56
* MAINT: Cleaning / simplify ``Node`` (https://github.com/nipy/nipype/pull/#2325)
67
* STY: Cleanup of PEP8 violations (https://github.com/nipy/nipype/pull/2358)

nipype/interfaces/afni/utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,15 +1268,21 @@ def _list_outputs(self):
12681268
outputs['out_detrend'] = Undefined
12691269

12701270
sout = np.loadtxt(outputs['out_file'])
1271+
1272+
# handle newer versions of AFNI
1273+
if sout.size == 8:
1274+
outputs['fwhm'] = tuple(sout[0, :])
1275+
else:
1276+
outputs['fwhm'] = tuple(sout)
1277+
12711278
if self._acf:
1279+
assert sout.size == 8, "Wrong number of elements in %s" % str(sout)
12721280
outputs['acf_param'] = tuple(sout[1])
1273-
sout = tuple(sout[0])
12741281

12751282
outputs['out_acf'] = op.abspath('3dFWHMx.1D')
12761283
if isinstance(self.inputs.acf, (str, bytes)):
12771284
outputs['out_acf'] = op.abspath(self.inputs.acf)
12781285

1279-
outputs['fwhm'] = tuple(sout)
12801286
return outputs
12811287

12821288

0 commit comments

Comments
 (0)