Skip to content

Commit f43ea3b

Browse files
committed
make check-before-commit
1 parent 0a79223 commit f43ea3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,14 +1383,14 @@ def merge_rois(in_files, in_idxs, in_ref,
13831383
npix = rsh[0] * rsh[1] * rsh[2]
13841384
fcdata = nb.load(in_files[0]).get_data()
13851385

1386-
if fcdata.ndim == 4:
1386+
if fcdata.ndim == 4:
13871387
ndirs = fcdata.shape[-1]
13881388
else:
13891389
ndirs = 1
13901390
newshape = (rsh[0], rsh[1], rsh[2], ndirs)
13911391
hdr.set_data_dtype(dtype)
13921392
hdr.set_xyzt_units('mm', 'sec')
1393-
1393+
13941394
if ndirs < 300:
13951395
data = np.zeros((npix, ndirs))
13961396
for cname, iname in zip(in_files, in_idxs):
@@ -1404,7 +1404,7 @@ def merge_rois(in_files, in_idxs, in_ref,
14041404
except:
14051405
print(data.shape, cdata.shape)
14061406
raise
1407-
1407+
14081408
hdr.set_data_shape(newshape)
14091409

14101410
nb.Nifti1Image(data.reshape(newshape).astype(dtype),

0 commit comments

Comments
 (0)