picometer.utility

Functions

ustr2float(→ float)

Convert a string "1.23(4)" to float 1.23, stripping uncertainty.

ustr2floats(→ List[float])

Convenience function to convert an iterable of u-strings to floats.

Module Contents

picometer.utility.ustr2float(s: str) float[source]

Convert a string “1.23(4)” to float 1.23, stripping uncertainty.

picometer.utility.ustr2floats(s: Iterable[str]) List[float][source]

Convenience function to convert an iterable of u-strings to floats.