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

Method test_invalid_inputs

tests/transforms/test_rand_zoomd.py:88–93  ·  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_order", 0.9, 1.1, "s", ValueError)]
87 )
88 def test_invalid_inputs(self, _, min_zoom, max_zoom, mode, raises):
89 key = "img"
90 for p in TEST_NDARRAYS_ALL:
91 with self.assertRaises(raises):
92 random_zoom = RandZoomd(key, prob=1.0, min_zoom=min_zoom, max_zoom=max_zoom, mode=mode)
93 random_zoom({key: p(self.imt[0])})
94
95 def test_auto_expand_3d(self):
96 random_zoom = RandZoomd(

Callers

nothing calls this directly

Calls 1

RandZoomdClass · 0.90

Tested by

no test coverage detected