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 96cdb90 commit f942c6aCopy full SHA for f942c6a
spectral/tests/spatial.py
@@ -170,7 +170,9 @@ def test_map_class_ids_src_gt_dest(self):
170
gt2[i, j] = new_label
171
172
d = map_class_ids(gt2, gt)
173
- assert(d[new_label] == new_label)
+ # There are enough pixels for each class that a new single-pixel class
174
+ # should not be mapped to one of the existing classes.
175
+ assert(d[new_label] not in gt)
176
d.pop(new_label)
177
for (i, j) in d.items():
178
assert(j == i)
0 commit comments