File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11Upcoming 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)
Original file line number Diff line number Diff line change @@ -1267,16 +1267,22 @@ def _list_outputs(self):
12671267 else :
12681268 outputs ['out_detrend' ] = Undefined
12691269
1270- sout = np .loadtxt (outputs ['out_file' ])
1270+ sout = np .loadtxt (outputs ['out_file' ]) #pylint: disable=E1101
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
You can’t perform that action at this time.
0 commit comments