torchsig.utils.yaml.write_dict_to_yaml

torchsig.utils.yaml.write_dict_to_yaml(filename: str, info_dict: dict[str, Any]) None[source]

Writes a dictionary to a YAML file with customized settings.

This function writes the provided info_dict to a YAML file. It customizes the representation of lists by using the custom_representer, and it uses specific formatting options (e.g., no sorting of keys, custom line width).

Parameters:
  • filename – The name of the YAML file to which the dictionary will be written.

  • info_dict – The dictionary to be written to the YAML file.

Returns:

This function does not return any value.

Return type:

None