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

Method __init__

monai/bundle/config_item.py:215–223  ·  view source on GitHub ↗
(
        self,
        config: Any,
        id: str = "",
        locator: ComponentLocator | None = None,
        excludes: Sequence[str] | str | None = None,
    )

Source from the content-addressed store, hash-verified

213 non_arg_keys = {"_target_", "_disabled_", "_requires_", "_desc_", "_mode_"}
214
215 def __init__(
216 self,
217 config: Any,
218 id: str = "",
219 locator: ComponentLocator | None = None,
220 excludes: Sequence[str] | str | None = None,
221 ) -> None:
222 super().__init__(config=config, id=id)
223 self.locator = ComponentLocator(excludes=excludes) if locator is None else locator
224
225 @staticmethod
226 def is_instantiable(config: Any) -> bool:

Callers

nothing calls this directly

Calls 2

ComponentLocatorClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected