(main_experiment_dir: Path, benchmark_dir: Path)
| 66 | |
| 67 | |
| 68 | def build_rows(main_experiment_dir: Path, benchmark_dir: Path) -> list[list[str]]: |
| 69 | rows: list[list[str]] = [] |
| 70 | for name, key in METHODS: |
| 71 | metrics = read_top20(metrics_path(main_experiment_dir, benchmark_dir, key)) |
| 72 | row = [name] |
| 73 | for header in HEADERS[1:]: |
| 74 | row.append(fmt(metrics.get(header)) if metrics else "") |
| 75 | rows.append(row) |
| 76 | return rows |
| 77 | |
| 78 | |
| 79 | def write_markdown(path: Path, rows: list[list[str]]) -> None: |
no test coverage detected