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

Function safe_float

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

Source from the content-addressed store, hash-verified

60
61
62def safe_float(value: Any, default: float = 0.0) -> float:
63 try:
64 return float(value)
65 except (TypeError, ValueError):
66 return default
67
68
69def 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