import yaml


def load_config_file(config_file):
    """
    Load config file.

    Parameters
    ----------
    config_file : str
        Path of the yaml file with all the parameters for the detector.

    Returns
    -------
    config : dict
        Parsed parameters.

    """
    # Loads config  files
    yaml_file = open(config_file)
    config = yaml.load(yaml_file, Loader=yaml.FullLoader)
    return config