def load_configuration(yaml: yaml.ruamel.yaml.YAML, filename: str) -> DictLike:
    """ Load an analysis configuration from a file.

    Args:
        yaml: YAML object to use in loading the configuration.
        filename: Filename of the YAML configuration file.
    Returns:
        dict-like object containing the loaded configuration
    """
    with open(filename, "r") as f:
        config = yaml.load(f)

    return config
Load an analysis configuration from a file.

    Args:
        yaml: YAML object to use in loading the configuration.
        filename: Filename of the YAML configuration file.
    Returns:
        dict-like object containing the loaded configuration