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

Function format_cell

experiments/drift/build_drift_adaptation_experiment.py:79–88  ·  view source on GitHub ↗
(value: Any, digits: int = 4)

Source from the content-addressed store, hash-verified

77
78
79def format_cell(value: Any, digits: int = 4) -> str:
80 if value is None:
81 return "N/A"
82 if isinstance(value, int):
83 return str(value)
84 if isinstance(value, float):
85 if not math.isfinite(value):
86 return "N/A"
87 return f"{value:.{digits}f}"
88 return str(value)
89
90
91def normalize_topic(value: Any) -> str:

Callers 1

write_markdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected