File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
Upcoming release (0.14.1)
2
- ================
2
+ =========================
3
3
4
+ * FIX: Robustly handled outputs of 3dFWHMx across different versions of AFNI (https://github.com/nipy/nipype/pull/2373)
4
5
* FIX: Cluster threshold in randomise + change default prefix (https://github.com/nipy/nipype/pull/2369)
5
6
* MAINT: Cleaning / simplify ``Node`` (https://github.com/nipy/nipype/pull/#2325)
6
7
* STY: Cleanup of PEP8 violations (https://github.com/nipy/nipype/pull/2358)
Original file line number Diff line number Diff line change @@ -1268,15 +1268,21 @@ def _list_outputs(self):
1268
1268
outputs ['out_detrend' ] = Undefined
1269
1269
1270
1270
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
+
1271
1278
if self ._acf :
1279
+ assert sout .size == 8 , "Wrong number of elements in %s" % str (sout )
1272
1280
outputs ['acf_param' ] = tuple (sout [1 ])
1273
- sout = tuple (sout [0 ])
1274
1281
1275
1282
outputs ['out_acf' ] = op .abspath ('3dFWHMx.1D' )
1276
1283
if isinstance (self .inputs .acf , (str , bytes )):
1277
1284
outputs ['out_acf' ] = op .abspath (self .inputs .acf )
1278
1285
1279
- outputs ['fwhm' ] = tuple (sout )
1280
1286
return outputs
1281
1287
1282
1288
You can’t perform that action at this time.
0 commit comments