Skip to content

Commit 3883fe9

Browse files
author
Shoshana Berleant
committed
make python3 happy
1 parent bc48a74 commit 3883fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _process_inputs(self):
8989
masker = nl.NiftiMapsMasker(label_data)
9090
n_labels = label_data.shape[3]
9191
else: # 3d file
92-
if np.amax(label_data) > 1: # 3d label file
92+
if np.amax(label_data.get_data()) > 1: # 3d label file
9393
masker = nl.NiftiLabelsMasker(label_data)
9494
# assuming consecutive positive integers for regions
9595
n_labels = np.amax(label_data.get_data())

0 commit comments

Comments
 (0)