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

Function write_json_report

benchmark/evaluation/report.py:218–223  ·  view source on GitHub ↗

Write the report to a JSON file.

(report, output_path)

Source from the content-addressed store, hash-verified

216
217
218def write_json_report(report, output_path):
219 """Write the report to a JSON file."""
220 os.makedirs(os.path.dirname(output_path) or '.', exist_ok=True)
221 with open(output_path, 'w') as f:
222 json.dump(report, f, indent=2, default=str)
223 print(f"Report saved to {output_path}")
224
225
226def write_overall(report, output_dir):

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected