to_yaml#

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

dict to yaml

Parameters:
dictionarydict

Python dictionary.

sort_keysbool, optional

Whether to sort keys. Default is False.