MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_shape

Method test_shape

tests/transforms/test_morphological_ops.py:81–83  ·  view source on GitHub ↗
(self, input_data, expected_result)

Source from the content-addressed store, hash-verified

79class TestMorph(unittest.TestCase):
80 @parameterized.expand(TESTS_SHAPE)
81 def test_shape(self, input_data, expected_result):
82 result1 = erode(input_data["mask"], input_data["filter_size"])
83 assert_allclose(result1.shape, expected_result, type_test=False, device_test=False, atol=0.0)
84
85 @parameterized.expand(TESTS_VALUE_T)
86 def test_value_t(self, input_data, expected_result):

Callers

nothing calls this directly

Calls 2

erodeFunction · 0.90
assert_allcloseFunction · 0.90

Tested by

no test coverage detected