Skip to content

Commit 631d63a

Browse files
committed
fixed error
1 parent 3afcdd3 commit 631d63a

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)