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 9d998f5 commit 33aae70Copy full SHA for 33aae70
test/test_measurements.py
@@ -2,6 +2,7 @@
2
import unittest
3
from shutil import rmtree
4
5
+import imageio.v3 as imageio
6
import pandas as pd
7
8
@@ -37,6 +38,10 @@ def test_compute_object_measures(self):
37
38
for col in expected_columns:
39
self.assertIn(col, table.columns)
40
41
+ n_objects = int(imageio.imread(self.seg_path).max())
42
+ expected_shape = (n_objects, len(expected_columns))
43
+ self.assertEqual(table.shape, expected_shape)
44
+
45
46
if __name__ == "__main__":
47
unittest.main()
0 commit comments