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 6448ee8 commit e98bd95Copy full SHA for e98bd95
nipype/interfaces/nilearn.py
@@ -113,6 +113,10 @@ def _process_inputs(self):
113
maskers.append(nl.NiftiMapsMasker(label_data))
114
115
# check label list size
116
+ if not np.isclose(int(n_labels), n_labels):
117
+ raise ValueError('The label files {} contain invalid value {}. Check input.'
118
+ .format(self.inputs.label_files, n_labels))
119
+
120
if len(self.inputs.class_labels) != n_labels:
121
raise ValueError('The length of class_labels {} does not '
122
'match the number of regions {} found in '
0 commit comments