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

Method __call__

tests/integration/test_one_of.py:93–98  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

91class Inv(MapBase, InvertibleTransform):
92
93 def __call__(self, data):
94 d = deepcopy(dict(data))
95 for key in self.key_iterator(d):
96 d[key] = self.fwd_fn(d[key])
97 self.push_transform(d, key)
98 return d
99
100 def inverse(self, data):
101 d = deepcopy(dict(data))

Callers

nothing calls this directly

Calls 2

key_iteratorMethod · 0.80
push_transformMethod · 0.80

Tested by

no test coverage detected