sanitize_parameter_list

glotaran.utils.sanitize.sanitize_parameter_list(parameter_list: list[str | float]) list[str | float][source]

Replace in a list strings matching scientific notation with floats.

Parameters:

parameter_list (list) – A list of parameters where some elements may be strings like 1E7

Returns:

A list where strings matching a scientific number have been converted to float

Return type:

list