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

Method check_ids

tests/data/meta_tensor/test_meta_tensor.py:65–67  ·  view source on GitHub ↗
(self, a, b, should_match)

Source from the content-addressed store, hash-verified

63 return m, t
64
65 def check_ids(self, a, b, should_match):
66 comp = self.assertEqual if should_match else self.assertNotEqual
67 comp(id(a), id(b))
68
69 def check_meta(self, a: MetaTensor, b: MetaTensor) -> None:
70 self.assertEqual(a.is_batch, b.is_batch)

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected