esmvaltool/diag_scripts/ocean/diagnostic_maps_quad.py
def match_model_to_key(model_type, cfg_dict, input_files_dict, ):
    """
    Match up the three models and observations dataset from the configs.

    This function checks that the control_model, exper_model and
    observational_dataset dictionairies from the recipe are matched with the
    input file dictionairy in the cfg metadata.
    """
    for input_file, intput_dict in input_files_dict.items():
        intersection = dict(intput_dict.items() & cfg_dict.items())
        if intersection == cfg_dict:
            return input_file
    logger.warning("Unable to match model: %s", model_type)
    return ''

    Match up the three models and observations dataset from the configs.

    This function checks that the control_model, exper_model and
    observational_dataset dictionairies from the recipe are matched with the
    input file dictionairy in the cfg metadata.
    
Match up the three models and observations dataset from the configs.
This function checks that the control_model, exper_model and
observational_dataset dictionairies from the recipe are matched with the
input file dictionairy in the cfg metadata.
Match up the three models and observations dataset from the configs . This function checks that the control_model exper_model and observational_dataset dictionairies from the recipe are matched with the input file dictionairy in the cfg metadata .
def match_model_to_key(model_type, cfg_dict, input_files_dict, ):
    for input_file, intput_dict in input_files_dict.items():
        intersection = dict(intput_dict.items() & cfg_dict.items())
        if intersection == cfg_dict:
            return input_file
    logger.warning("Unable to match model: %s", model_type)
    return ''
def match_model_to_key ( model_type , cfg_dict , input_files_dict , ) : for input_file , intput_dict in input_files_dict . items ( ) : intersection = dict ( intput_dict . items ( ) & cfg_dict . items ( ) ) if intersection == cfg_dict : return input_file logger . warning ( "Unable to match model: %s" , model_type ) return ''
Match up the three models and observations dataset from the configs.
Match up the three models and observations dataset from the configs .
"""
    Match up the three models and observations dataset from the configs.

    This function checks that the control_model, exper_model and
    observational_dataset dictionairies from the recipe are matched with the
    input file dictionairy in the cfg metadata.
    """
model_type
cfg_dict
input_files_dict