MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _parse_floats

Function _parse_floats

Scripts/clean_meshes.py:111–113  ·  view source on GitHub ↗

Whitespace-tolerant float list parser for inline mesh attributes.

(s: str)

Source from the content-addressed store, hash-verified

109
110
111def _parse_floats(s: str) -> list:
112 """Whitespace-tolerant float list parser for inline mesh attributes."""
113 return [float(t) for t in s.replace(",", " ").split() if t]
114
115
116# Asset elements whose ``file=`` attribute is a path that must stay resolvable

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected