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

Method test_invalid_inputs

tests/transforms/test_rand_zoom.py:88–92  ·  view source on GitHub ↗
(self, _, min_zoom, max_zoom, mode, raises)

Source from the content-addressed store, hash-verified

86 [("no_min_zoom", None, 1.1, "bilinear", TypeError), ("invalid_mode", 0.9, 1.1, "s", ValueError)]
87 )
88 def test_invalid_inputs(self, _, min_zoom, max_zoom, mode, raises):
89 for p in TEST_NDARRAYS_ALL:
90 with self.assertRaises(raises):
91 random_zoom = RandZoom(prob=1.0, min_zoom=min_zoom, max_zoom=max_zoom, mode=mode)
92 random_zoom(p(self.imt[0]))
93
94 def test_auto_expand_3d(self):
95 for p in TEST_NDARRAYS_ALL:

Callers

nothing calls this directly

Calls 1

RandZoomClass · 0.90

Tested by

no test coverage detected