Return the most recent timestamped subdirectory.
(variant_dir: Path)
| 22 | |
| 23 | |
| 24 | def 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 | |
| 32 | def read_summary(results_dir: Path, variant_key: str) -> tuple[pd.DataFrame, str]: |