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

Method __init__

monai/transforms/io/dictionary.py:335–339  ·  view source on GitHub ↗
(
        self, keys: KeysCollection, mapping_file_path: Path | str = "mapping.json", allow_missing_keys: bool = False
    )

Source from the content-addressed store, hash-verified

333 """
334
335 def __init__(
336 self, keys: KeysCollection, mapping_file_path: Path | str = "mapping.json", allow_missing_keys: bool = False
337 ) -> None:
338 super().__init__(keys, allow_missing_keys)
339 self.mapping = WriteFileMapping(mapping_file_path)
340
341 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
342 d = dict(data)

Callers

nothing calls this directly

Calls 2

WriteFileMappingClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected