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

Function _get_data

monai/transforms/utils.py:1938–1939  ·  view source on GitHub ↗
(obj, key)

Source from the content-addressed store, hash-verified

1936 from monai.transforms.compose import OneOf
1937
1938 def _get_data(obj, key):
1939 return obj if key is None else obj[key]
1940
1941 # if the starting point is a string (e.g., input to LoadImage), start
1942 # at -1 since we don't want to count the string -> image conversion.

Callers 2

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…