sanitize_dict_values

glotaran.utils.sanitize.sanitize_dict_values(d: dict[str, Any] | list[Any])[source]

Sanitizes a dict with broken tuples inside modifying it in-place.

Broken tuples are tuples that are turned into strings by the yaml parser. This functions calls sanitize_list_with_broken_tuples to glue the broken strings together and then calls list_to_tuple to turn the list with tuple strings back to number tuples.

Parameters:

d (dict) – A (complex) dict containing (possibly nested) values of broken tuple strings.