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

Method test_identity

tests/transforms/utility/test_identity.py:21–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19
20class TestIdentity(NumpyImageTestCase2D):
21 def test_identity(self):
22 for p in TEST_NDARRAYS:
23 img = p(self.imt)
24 identity = Identity()
25 assert_allclose(img, identity(img))
26
27
28if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

IdentityClass · 0.90
assert_allcloseFunction · 0.90
identityFunction · 0.85

Tested by

no test coverage detected