import yaml


def read_config_yaml(filename):
    """
    Read in the configuration file.
    For an example file see examples/configs/buzzardCatLoader.yaml

    Parameters
    ----------
    filename : str
        Filepath of configuration file.

    Returns
    -------
    dict
        Dictionary with parameters to pass to GCRCatalogs.
    """

    with open(filename, 'r') as stream:
        config_data_dict = yaml.safe_load(stream)

    return config_data_dict