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

Method test_unchange

tests/transforms/test_resize.py:51–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 resize(self.imt[0])
50
51 def test_unchange(self):
52 resize = Resize(spatial_size=(128, 64), mode="bilinear")
53 set_track_meta(False)
54 for p in TEST_NDARRAYS_ALL:
55 im = p(self.imt[0])
56 result = resize(im)
57 assert_allclose(im, result, type_test=False)
58 set_track_meta(True)
59
60 @parameterized.expand(
61 [

Callers

nothing calls this directly

Calls 4

ResizeClass · 0.90
set_track_metaFunction · 0.90
assert_allcloseFunction · 0.90
resizeFunction · 0.85

Tested by

no test coverage detected