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

Function safe_div

experiments/drift/build_drift_adaptation_experiment.py:73–76  ·  view source on GitHub ↗
(numerator: float, denominator: float)

Source from the content-addressed store, hash-verified

71
72
73def safe_div(numerator: float, denominator: float) -> Optional[float]:
74 if denominator <= 0:
75 return None
76 return numerator / denominator
77
78
79def format_cell(value: Any, digits: int = 4) -> str:

Callers 1

topic_window_metricsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected