esmvaltool/diag_scripts/aerosols/diagnostics_tendency.py
def _get_my_infos(cfg):
    """Put files in dicts of datasets and return them."""
    info_dict = {}
    for filename, attributes in cfg['input_data'].items():
        base_file = os.path.basename(filename)
        dataset = base_file.split('_')[1]
        info_dict[dataset] = {}
        info_dict[dataset]['units'] = attributes['units']
        info_dict[dataset]['short_name'] = attributes['short_name']
        if 'fx_files' in attributes:
            for fx_var in attributes['fx_files']:
                info_dict[dataset][fx_var] = attributes['fx_files'][fx_var]

    return info_dict
Put files in dicts of datasets and return them.
Put files in dicts of datasets and return them.
Put files in dicts of datasets and return them .
def _get_my_infos(cfg):
    info_dict = {}
    for filename, attributes in cfg['input_data'].items():
        base_file = os.path.basename(filename)
        dataset = base_file.split('_')[1]
        info_dict[dataset] = {}
        info_dict[dataset]['units'] = attributes['units']
        info_dict[dataset]['short_name'] = attributes['short_name']
        if 'fx_files' in attributes:
            for fx_var in attributes['fx_files']:
                info_dict[dataset][fx_var] = attributes['fx_files'][fx_var]
    return info_dict
def _get_my_infos ( cfg ) : info_dict = { } for filename , attributes in cfg [ 'input_data' ] . items ( ) : base_file = os . path . basename ( filename ) dataset = base_file . split ( '_' ) [ 1 ] info_dict [ dataset ] = { } info_dict [ dataset ] [ 'units' ] = attributes [ 'units' ] info_dict [ dataset ] [ 'short_name' ] = attributes [ 'short_name' ] if 'fx_files' in attributes : for fx_var in attributes [ 'fx_files' ] : info_dict [ dataset ] [ fx_var ] = attributes [ 'fx_files' ] [ fx_var ] return info_dict
Put files in dicts of datasets and return them.
Put files in dicts of datasets and return them .
"""Put files in dicts of datasets and return them."""
cfg