from_yaml#

gammapy.utils.scripts.from_yaml(text, sort_keys=False, checksum=False)[source]#

Read YAML file.

Parameters:
textstr

yaml str

sort_keysbool, optional

Whether to sort keys. Default is False.

checksumbool

Whether to perform checksum verification. Default is False.

Returns:
datadict

YAML file content as a dictionary.