MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / build_rows

Function build_rows

experiments/main_experiment/_combine_baseline_tables.py:68–76  ·  view source on GitHub ↗
(main_experiment_dir: Path, benchmark_dir: Path)

Source from the content-addressed store, hash-verified

66
67
68def 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
79def write_markdown(path: Path, rows: list[list[str]]) -> None:

Callers 1

mainFunction · 0.70

Calls 4

read_top20Function · 0.85
metrics_pathFunction · 0.85
getMethod · 0.80
fmtFunction · 0.70

Tested by

no test coverage detected