Skip to content

Commit e8e18ef

Browse files
committed
Merge pull request #1349 from oesteban/fix/NumpyNanToNum
Fixed minor error in tSNR
2 parents 42f0663 + 631d63a commit e8e18ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _run_interface(self, runtime):
302302
vollist = [nb.load(filename) for filename in self.inputs.in_file]
303303
data = np.concatenate([vol.get_data().reshape(
304304
vol.get_shape()[:3] + (-1,)) for vol in vollist], axis=3)
305-
data = data.nan_to_num()
305+
data = np.nan_to_num(data)
306306

307307
if data.dtype.kind == 'i':
308308
header.set_data_dtype(np.float32)

0 commit comments

Comments
 (0)