Skip to content

Commit 89a2036

Browse files
author
Ben Cipollini
committed
Fix split_and_merge; some issue with old_div
1 parent b4fd99f commit 89a2036

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
@@ -1323,7 +1323,7 @@ def split_rois(in_file, mask=None, roishape=None):
13231323
mask = mask.reshape(-1).astype(np.uint8)
13241324
nzels = np.nonzero(mask)
13251325
els = np.sum(mask)
1326-
nrois = int(ceil(old_div(els,roisize)))
1326+
nrois = int(ceil(els / float(roisize)))
13271327

13281328
data = im.get_data().reshape((mask.size, -1))
13291329
data = np.squeeze(data.take(nzels, axis=0))

0 commit comments

Comments
 (0)