MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / _as_float

Method _as_float

lightx2v/disagg/services/controller.py:1729–1733  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

1727 try:
1728 return float(value)
1729 except (TypeError, ValueError):
1730 return None
1731
1732 def _stage(name: str) -> dict[str, Any]:
1733 stages = request_metrics.get("stages")
1734 if not isinstance(stages, dict):
1735 return {}
1736 stage_metrics = stages.get(name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected