MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

tests/test_utils.py:264–266  ·  view source on GitHub ↗
(self, module_name)

Source from the content-addressed store, hash-verified

262 when optional module is not present."""
263
264 def __init__(self, module_name):
265 self.module_name = module_name
266 self.module_missing = not optional_import(self.module_name)[1]
267
268 def __call__(self, obj):
269 return unittest.skipIf(self.module_missing, f"optional module not present: {self.module_name}")(obj)

Callers

nothing calls this directly

Calls 1

optional_importFunction · 0.90

Tested by

no test coverage detected