import yaml


def parse_summary(p_summary):
    """
    Helper function for parsing summary.yaml
    Args:
        p_summary (string): summary.yaml
    """
    try:
        with open(p_summary, 'r') as in_file:
            return yaml.safe_load(in_file.read())
    except IOError:
        exit('File ' + p_summary + ' was not found!')