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

Method __init__

monai/transforms/utility/dictionary.py:619–627  ·  view source on GitHub ↗

Args: keys: keys of the corresponding items to be transformed. See also: :py:class:`monai.transforms.compose.MapTransform` allow_missing_keys: don't raise exception if key is missing.

(self, keys: KeysCollection, allow_missing_keys: bool = False)

Source from the content-addressed store, hash-verified

617 backend = ToPIL.backend
618
619 def __init__(self, keys: KeysCollection, allow_missing_keys: bool = False) -> None:
620 """
621 Args:
622 keys: keys of the corresponding items to be transformed.
623 See also: :py:class:`monai.transforms.compose.MapTransform`
624 allow_missing_keys: don't raise exception if key is missing.
625 """
626 super().__init__(keys, allow_missing_keys)
627 self.converter = ToPIL()
628
629 def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]:
630 d = dict(data)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

ToPILClass · 0.90

Tested by

no test coverage detected