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

Function safe_float

experiments/baselines/scholar_inbox/runner.py:66–70  ·  view source on GitHub ↗
(value: Any, default: float = 0.0)

Source from the content-addressed store, hash-verified

64
65
66def safe_float(value: Any, default: float = 0.0) -> float:
67 try:
68 return float(value)
69 except (TypeError, ValueError):
70 return default
71
72
73def load_jsonl(path: Path) -> List[Dict[str, Any]]:

Callers 1

_seed_direction_entriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected