import yaml


def read_raft_ccd_map(yamlfile):
    """Get the mapping from raft and slot to CCD

    Parameters
    ----------
    yamlfile : `str`
        File with the mapping

    Returns
    -------
    retval : `dict`
        The mapping key raft, slot to CCD serial number
    """
    return yaml.safe_load(open(yamlfile))