pyacs.lib.utils.str2list_float

String parsing helpers.

pyacs.lib.utils.str2list_float.str2list_float(my_str)[source]

Convert a string representation of a list to a list of floats.

Parameters:

my_str (str) – String like ‘[0, 2.5, 1E9]’.

Returns:

Parsed values, e.g. [0, 2.5, 1e9].

Return type:

list of float