write_yaml

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

Write YAML file.

Parameters:
dictionary : dict

Python dictionary

filename : str, Path

file to write