import yaml


def parse_config_file(config_file) -> dict:
    """Read config.yaml file with params.
    Returns
    -------
    dict
        Dict of config
    """
    with open(config_file, 'r') as stream:
        try:
            CONFIG = yaml.safe_load(stream)
        except yaml.YAMLError as exc:
            print(exc)
            exit(1)

    return CONFIG