list_string_to_tuple

glotaran.utils.sanitize.list_string_to_tuple(a_list: list[str]) list[tuple[float, ...] | tuple[str, ...] | float | str][source]

Convert a list of strings (representing tuples) to a list of tuples.

Parameters:

a_list (List[str]) – A list of strings, some of them representing (numbered) tuples

Returns:

A list of the (numbered) tuples represted by the incoming a_list

Return type:

List[Union[float, str]]