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

Method get_transform_info

monai/transforms/inverse.py:118–130  ·  view source on GitHub ↗

Return a dictionary with the relevant information pertaining to an applied transform.

(self)

Source from the content-addressed store, hash-verified

116 return (TraceKeys.CLASS_NAME, TraceKeys.ID, TraceKeys.TRACING, TraceKeys.DO_TRANSFORM)
117
118 def get_transform_info(self) -> dict:
119 """
120 Return a dictionary with the relevant information pertaining to an applied transform.
121 """
122 self._init_trace_threadlocal()
123
124 vals = (
125 self.__class__.__name__,
126 id(self),
127 self.tracing,
128 self._do_transform if hasattr(self, "_do_transform") else True,
129 )
130 return dict(zip(self.transform_info_keys(), vals))
131
132 def push_transform(self, data, *args, **kwargs):
133 """

Callers 14

push_transformMethod · 0.95
transform_coordinatesMethod · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80

Calls 2

transform_info_keysMethod · 0.95

Tested by 1

test_defaultMethod · 0.64