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

Function main

experiments/human_eval/draw_model_eval_ggbench_labeled.py:275–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273
274
275def main() -> None:
276 OUT_DIR.mkdir(parents=True, exist_ok=True)
277 PAPER_TYPO_PDF_OUT.parent.mkdir(parents=True, exist_ok=True)
278 rows = read_rows()
279 image = draw_chart(rows)
280 image.save(PNG_OUT, dpi=(DPI, DPI))
281 for pdf_out in [PDF_OUT, TYPO_PDF_OUT, DESKTOP_TYPO_PDF_OUT, PAPER_TYPO_PDF_OUT]:
282 image.save(pdf_out, "PDF", resolution=float(DPI))
283 write_svg(rows)
284 write_csv(rows)
285 print(PNG_OUT)
286 print(PDF_OUT)
287 print(TYPO_PDF_OUT)
288 print(DESKTOP_TYPO_PDF_OUT)
289 print(PAPER_TYPO_PDF_OUT)
290 print(SVG_OUT)
291
292
293if __name__ == "__main__":

Calls 4

draw_chartFunction · 0.85
read_rowsFunction · 0.70
write_svgFunction · 0.70
write_csvFunction · 0.70

Tested by

no test coverage detected