def get_isotope_dicts(element='<STR_LIT>', database='<STR_LIT>'):
_file_path = os.path.abspath(os.path.dirname(__file__))<EOL>_database_folder = os.path.join(_file_path, '<STR_LIT>', database)<EOL>_element_search_path = os.path.join(_database_folder, element + '<STR_LIT>')<EOL>list_files = glob.glob(_element_search_path)<EOL>if not list_files:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>list_files.sort()<EOL>isotope_dict = {'<STR_LIT>': {'<STR_LIT:list>': [],<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': {'<STR_LIT:value>': np.NaN,<EOL>'<STR_LIT>': '<STR_LIT>'},<EOL>'<STR_LIT>': {'<STR_LIT:value>': [],<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>},<EOL>'<STR_LIT>': [], },<EOL>'<STR_LIT>': {'<STR_LIT:value>': np.NaN,<EOL>'<STR_LIT>': '<STR_LIT>'},<EOL>'<STR_LIT>': {'<STR_LIT:value>': np.NaN,<EOL>'<STR_LIT>': '<STR_LIT>'},<EOL>}<EOL>_isotopes_list = []<EOL>_isotopes_list_files = []<EOL>_isotopes_mass = []<EOL>_isotopes_density = []<EOL>_isotopes_atomic_ratio = []<EOL>_density = np.NaN<EOL>_molar_mass = np.NaN<EOL>for file in list_files:<EOL><INDENT>_basename = os.path.basename(file)<EOL>filename = os.path.splitext(_basename)[<NUM_LIT:0>]<EOL>if '<STR_LIT:->' in filename:<EOL><INDENT>[_name, _number] = filename.split('<STR_LIT:->')<EOL>if '<STR_LIT:_>' in _number:<EOL><INDENT>[aaa, meta] = _number.split('<STR_LIT:_>')<EOL>_number = aaa[:]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>_split_list = re.split(r'<STR_LIT>', filename)<EOL>if len(_split_list) == <NUM_LIT:2>:<EOL><INDENT>[_name, _number] = _split_list<EOL><DEDENT>else:<EOL><INDENT>_name = _split_list[<NUM_LIT:0>]<EOL>_number = _split_list[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>if _number == '<STR_LIT:0>':<EOL><INDENT>_number = '<STR_LIT>'<EOL><DEDENT>_symbol = _number + '<STR_LIT:->' + _name<EOL>isotope = str(_symbol)<EOL>_isotopes_list.append(isotope)<EOL>_isotopes_list_files.append(_basename)<EOL>_isotopes_mass.append(get_mass(isotope))<EOL>_isotopes_atomic_ratio.append(get_abundance(isotope))<EOL>_isotopes_density.append(get_density(isotope))<EOL>_density = get_density(element)<EOL>_molar_mass = get_mass(element)<EOL><DEDENT>isotope_dict['<STR_LIT>']['<STR_LIT:list>'] = _isotopes_list<EOL>isotope_dict['<STR_LIT>']['<STR_LIT>'] = _isotopes_list_files<EOL>isotope_dict['<STR_LIT>']['<STR_LIT>']['<STR_LIT:value>'] = _isotopes_mass<EOL>isotope_dict['<STR_LIT>']['<STR_LIT>'] = _isotopes_atomic_ratio<EOL>isotope_dict['<STR_LIT>']['<STR_LIT>']['<STR_LIT:value>'] = _isotopes_density<EOL>isotope_dict['<STR_LIT>']['<STR_LIT:value>'] = _density<EOL>isotope_dict['<STR_LIT>']['<STR_LIT:value>'] = _molar_mass<EOL>return isotope_dict<EOL>
return a dictionary with list of isotopes found in database and name of database files

    Parameters:
    ===========
    element: string. Name of the element
      ex: 'Ag'
    database: string (default is ENDF_VII)

    Returns:
    ========
    dictionary with isotopes and files 
      ex: {'Ag': {'isotopes': ['107-Ag','109-Ag'],
                  'file_names': ['Ag-107.csv','Ag-109.csv']}}