MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / write_json

Function write_json

benchmark/models/scal3r/utils/data_utils.py:21–24  ·  view source on GitHub ↗
(path: str, payload: dict)

Source from the content-addressed store, hash-verified

19
20
21def write_json(path: str, payload: dict) -> None:
22 ensure_dir(dirname(path))
23 with open(path, "w", encoding="utf-8") as handle:
24 json.dump(payload, handle, indent=2)
25
26
27def write_lines(path: str, lines: Iterable[str]) -> None:

Callers 3

save_resultsFunction · 0.90
recordMethod · 0.90
run_inferenceFunction · 0.90

Calls 1

ensure_dirFunction · 0.85

Tested by

no test coverage detected