write_yaml#

gammapy.utils.scripts.write_yaml(dictionary, filename, logger=None, sort_keys=True, checksum=False)[source]#

Write YAML file.

Parameters
dictionarydict

Python dictionary.

filenamePath

Filename.

loggerLogger, optional

Logger. Default is None.

sort_keysbool, optional

Whether to sort keys. Default is True.

checksumbool, optional

Whether to add checksum keyword. Default is False.