write_yaml

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

Write YAML file.

Parameters:
dictionary : dict

Python dictionary

filename : Path

Filename

logger : Logger

Logger

sort_keys : bool

Whether to sort keys.