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

Function _safe_float

agents/wiki-agent/ingest/from_daily_push.py:74–78  ·  view source on GitHub ↗
(value: Any, default: float = 1.0)

Source from the content-addressed store, hash-verified

72
73
74def _safe_float(value: Any, default: float = 1.0) -> float:
75 try:
76 return float(value)
77 except (TypeError, ValueError):
78 return default
79
80
81def _paper_url(paper: Dict[str, Any], metadata: Dict[str, Any]) -> str:

Callers 1

ingest_pushed_paperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected