Skip to content

Commit

Permalink
Added init test
Browse files Browse the repository at this point in the history
Includes skimage label function but none of the region props stuff
  • Loading branch information
alexdaniel654 committed Sep 6, 2023
1 parent 4e70694 commit 82ef4f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ukat/segmentation/shape_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, pixel_array, affine=None, zoom=None, kidneys=True,
else:
self.region_labels = np.arange(1, self.n_labels + 1)

self.features = self.get_features()
# self.features = self.get_features()

def get_features(self):
"""
Expand Down
5 changes: 4 additions & 1 deletion ukat/segmentation/tests/test_shape_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def test_get_smoothed_mesh(self):
npt.assert_allclose([vertex_stats["mean"], vertex_stats["std"],
vertex_stats["min"], vertex_stats["max"]],
expected, rtol=1e-6, atol=1e-4)
#

def test_init(self):
shape_features = ShapeFeatures(self.kidneys, self.affine)

# def test_get_region_props(self):
# shape_features = ShapeFeatures(self.kidneys, self.affine)
# props_dict = shape_features._get_region_props(self.kidneys == 1)
Expand Down

0 comments on commit 82ef4f9

Please sign in to comment.