MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / latest_run

Function latest_run

benchmarking/vllm/collect_results.py:24–29  ·  view source on GitHub ↗

Return the most recent timestamped subdirectory.

(variant_dir: Path)

Source from the content-addressed store, hash-verified

22
23
24def latest_run(variant_dir: Path) -> Path:
25 """Return the most recent timestamped subdirectory."""
26 dirs = sorted(d for d in variant_dir.iterdir() if d.is_dir())
27 if not dirs:
28 raise FileNotFoundError(f"No runs found in {variant_dir}")
29 return dirs[-1]
30
31
32def read_summary(results_dir: Path, variant_key: str) -> tuple[pd.DataFrame, str]:

Callers 1

read_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected