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

Method __init__

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

Source from the content-addressed store, hash-verified

274 when optional module is present."""
275
276 def __init__(self, module_name):
277 self.module_name = module_name
278 self.module_avail = optional_import(self.module_name)[1]
279
280 def __call__(self, obj):
281 return unittest.skipIf(self.module_avail, f"Skipping because optional module present: {self.module_name}")(obj)

Callers

nothing calls this directly

Calls 1

optional_importFunction · 0.90

Tested by

no test coverage detected