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

    return files_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_files(cfg):
    files_dict = {}
    for filename, attributes in cfg['input_data'].items():
        base_file = os.path.basename(filename)
        dataset = base_file.split('_')[1]
        files_dict[dataset] = {}
        files_dict[dataset]['file'] = filename
        if 'fx_files' in attributes:
            for fx_var in attributes['fx_files']:
                files_dict[dataset][fx_var] = attributes['fx_files'][fx_var]
    return files_dict
def _get_my_files ( cfg ) : files_dict = { } for filename , attributes in cfg [ 'input_data' ] . items ( ) : base_file = os . path . basename ( filename ) dataset = base_file . split ( '_' ) [ 1 ] files_dict [ dataset ] = { } files_dict [ dataset ] [ 'file' ] = filename if 'fx_files' in attributes : for fx_var in attributes [ 'fx_files' ] : files_dict [ dataset ] [ fx_var ] = attributes [ 'fx_files' ] [ fx_var ] return files_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