read_yaml

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

Read YAML file.

Parameters:
filename : Path

Filename

logger : Logger

Logger

Returns:
data : dict

YAML file content as a dict