BaseConfig.save_yaml#

BaseConfig.save_yaml(path, datetime_comment=True, other_comment=None, format_comment=False)[source]#

Write data from self to a YAML file.

Parameters:
  • path (Path) – Path to YAML file to output.

  • datetime_comment (bool, default True) – Whether to include a comment at the top of the config file with the current date and time.

  • other_comment (str, optional) – Additional comments to add to the top of the config file, “#” will be added to the start of each new line if it isn’t already there.

  • format_comment (bool, default False) – Whether to remove newlines from other_comment and format lines to a specific character length.

Return type:

None