MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _load_config

Function _load_config

scripts/hora/export_onnx.py:86–89  ·  view source on GitHub ↗
(path: Path | None)

Source from the content-addressed store, hash-verified

84
85
86def _load_config(path: Path | None) -> Any | None:
87 if path is None or not path.exists():
88 return None
89 return OmegaConf.load(str(path))
90
91
92def _get_cfg_value(cfg: Any | None, key_path: str, default: Any) -> Any:

Callers 1

mainFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected