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

Method __init__

monai/transforms/utility/dictionary.py:643–645  ·  view source on GitHub ↗
(self, keys: KeysCollection, indices: Sequence[int] | None, allow_missing_keys: bool = False)

Source from the content-addressed store, hash-verified

641 backend = Transpose.backend
642
643 def __init__(self, keys: KeysCollection, indices: Sequence[int] | None, allow_missing_keys: bool = False) -> None:
644 super().__init__(keys, allow_missing_keys)
645 self.transform = Transpose(indices)
646
647 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
648 d = dict(data)

Callers

nothing calls this directly

Calls 2

TransposeClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected