We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc48a74 commit 3883fe9Copy full SHA for 3883fe9
nipype/algorithms/stats.py
@@ -89,7 +89,7 @@ def _process_inputs(self):
89
masker = nl.NiftiMapsMasker(label_data)
90
n_labels = label_data.shape[3]
91
else: # 3d file
92
- if np.amax(label_data) > 1: # 3d label file
+ if np.amax(label_data.get_data()) > 1: # 3d label file
93
masker = nl.NiftiLabelsMasker(label_data)
94
# assuming consecutive positive integers for regions
95
n_labels = np.amax(label_data.get_data())
0 commit comments