MCPcopy Create free account
hub / github.com/Open-Quant/openquant / bench_name

Function bench_name

scripts/collect_bench_results.py:13–17  ·  view source on GitHub ↗
(criterion_dir: Path, estimates_path: Path)

Source from the content-addressed store, hash-verified

11
12
13def bench_name(criterion_dir: Path, estimates_path: Path) -> str:
14 rel = estimates_path.relative_to(criterion_dir)
15 # strip trailing new/estimates.json
16 parts = rel.parts[:-2]
17 return "/".join(parts)
18
19
20def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected