ispl_safe / src /utils.py
davesalvi's picture
simplify utils
2137fb1
import yaml
def read_yaml(config_path):
"""
Read YAML file.
:param config_path: path to the YAML config file.
:type config_path: str
:return: dictionary correspondent to YAML content
:rtype dict
"""
with open(config_path, 'r') as f:
config = yaml.safe_load(f)
return config