Skip to content

Commit 33aae70

Browse files
Update the measurement test
1 parent 9d998f5 commit 33aae70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_measurements.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import unittest
33
from shutil import rmtree
44

5+
import imageio.v3 as imageio
56
import pandas as pd
67

78

@@ -37,6 +38,10 @@ def test_compute_object_measures(self):
3738
for col in expected_columns:
3839
self.assertIn(col, table.columns)
3940

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+
4045

4146
if __name__ == "__main__":
4247
unittest.main()

0 commit comments

Comments
 (0)