MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / _dump_json

Function _dump_json

scripts/run_eval_bridge.py:173–175  ·  view source on GitHub ↗
(path: Path, obj: dict[str, Any])

Source from the content-addressed store, hash-verified

171
172
173def _dump_json(path: Path, obj: dict[str, Any]) -> None:
174 path.parent.mkdir(parents=True, exist_ok=True)
175 path.write_text(json.dumps(obj, indent=2) + "\n", encoding="utf-8")
176
177
178def _path_is_regular_file(path: Path) -> bool:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected