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

Function fmt

experiments/main_experiment/_combine_baseline_tables.py:35–41  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

33
34
35def fmt(value: Any) -> str:
36 if value is None or value == "":
37 return ""
38 try:
39 return f"{float(value):.4f}"
40 except (TypeError, ValueError):
41 return ""
42
43
44def read_top20(metrics_file: Path) -> dict[str, Any] | None:

Callers 1

build_rowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected