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

Method test_meta_dict

tests/transforms/test_flipd.py:83–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81
82 @unittest.skipIf(not config.USE_META_DICT, "not using meta dict")
83 def test_meta_dict(self):
84 xform = Flipd("image", [0, 1])
85 res = xform({"image": torch.zeros(1, 3, 4)})
86 self.assertEqual(res["image"].applied_operations, res["image_transforms"])
87
88
89if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

FlipdClass · 0.90

Tested by

no test coverage detected