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

Method __init__

monai/utils/module.py:411–419  ·  view source on GitHub ↗
(self, *_args, **_kwargs)

Source from the content-addressed store, hash-verified

409 class _LazyRaise:
410
411 def __init__(self, *_args, **_kwargs):
412 _default_msg = (
413 f"{msg}."
414 + "\n\nFor details about installing the optional dependencies, please visit:"
415 + "\n https://monai.readthedocs.io/en/latest/installation.html#installing-the-recommended-dependencies"
416 )
417 if tb_str:
418 _default_msg += f"\n\nOriginal traceback:\n{tb_str}"
419 self._exception = OptionalImportError(_default_msg)
420
421 def __getattr__(self, name):
422 """

Callers

nothing calls this directly

Calls 1

OptionalImportErrorClass · 0.85

Tested by

no test coverage detected