import yaml


def load_config_dict_from_file(fp):
    """Function to load a dict of configuration settings from a yaml file"""

    with open(fp, 'r') as config_file:
        config_dict = yaml.safe_load(config_file.read())

    return config_dict