to_yaml#

gammapy.utils.scripts.to_yaml(dictionary, sort_keys=False)[source]#

Dictionary to yaml file.

Parameters:
dictionarydict

Python dictionary.

sort_keysbool, optional

Whether to sort keys. Default is False.