Skip to content
Snippets Groups Projects
Commit 48524905 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Classifier modification test is now obsolete, since generation works

parent 868a87e4
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ def generate_ilastik_object_classifier(
labels = []
for ii in range(0, label_stack.count):
unique = np.unique(label_stack.iat(ii))
assert len(unique) >= 2, 'Label image contains more than one non-zero value'
assert len(unique) <= 2, 'Label image contains more than one non-zero value'
assert unique[0] == 0, 'Label image does not contain unlabeled background'
assert unique[-1] < len(label_names) + 1, f'Label ID {unique[-1]} exceeds number of label names: {len(label_names)}'
labels.append(unique[-1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment