def convert_specie_naming_from_h5_to_ppn(isotope_names):
spe_rude1 = []<EOL>spe_rude2 = []<EOL>spe_rude3 = []<EOL>for i in range(len(isotope_names)):<EOL><INDENT>spe_rude1.append(isotope_names[i].split('<STR_LIT:->')[<NUM_LIT:0>])<EOL>spe_rude2.append(isotope_names[i].split('<STR_LIT:->')[<NUM_LIT:1>])<EOL><DEDENT>k = <NUM_LIT:0><EOL>for i in range(len(spe_rude1)):<EOL><INDENT>try:<EOL><INDENT>if int(spe_rude2[i]) < <NUM_LIT:10>:<EOL><INDENT>spe_rude3.append(str(spe_rude1[i][<NUM_LIT:0>:<NUM_LIT:2>])+str('<STR_LIT:U+0020>')+str(spe_rude2[i][<NUM_LIT:0>:<NUM_LIT:3>]))<EOL><DEDENT>elif int(spe_rude2[i]) >= <NUM_LIT:10> and int(spe_rude2[i]) < <NUM_LIT:100> :<EOL><INDENT>spe_rude3.append(str(spe_rude1[i][<NUM_LIT:0>:<NUM_LIT:2>])+str('<STR_LIT:U+0020>')+str(spe_rude2[i][<NUM_LIT:0>:<NUM_LIT:3>]))<EOL><DEDENT>elif int(spe_rude2[i]) >= <NUM_LIT:100> :<EOL><INDENT>spe_rude3.append(str(spe_rude1[i][<NUM_LIT:0>:<NUM_LIT:2>])+str(spe_rude2[i][<NUM_LIT:0>:<NUM_LIT:3>]))<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>k = k+<NUM_LIT:1><EOL>None<EOL><DEDENT><DEDENT>global spe<EOL>spe = []<EOL>global n_array<EOL>n_array = []<EOL>for i in range(len(spe_rude3)):<EOL><INDENT>if len(str(spe_rude1[i])) == <NUM_LIT:1>:<EOL><INDENT>spe.append(str(spe_rude3[i][<NUM_LIT:0>:<NUM_LIT:1>])+str('<STR_LIT:U+0020>')+str(spe_rude3[i][<NUM_LIT:1>:<NUM_LIT:4>]))<EOL><DEDENT>else:<EOL><INDENT>spe.append(spe_rude3[i])<EOL><DEDENT>n_array.append(i)<EOL><DEDENT>if spe[<NUM_LIT:0>]=='<STR_LIT>':<EOL><INDENT>spe[<NUM_LIT:0>] = '<STR_LIT>'<EOL><DEDENT>global amass_int<EOL>amass_int=np.zeros(len(spe_rude2))<EOL>for i in range(len(spe_rude2)-k):<EOL><INDENT>amass_int[i]=int(spe_rude2[i])<EOL><DEDENT>global znum_int<EOL>znum_int=np.zeros(len(spe))<EOL>for i in range(len(spe)):<EOL><INDENT>znum_int[i] = Utils.elements_names.index(str(spe[i][<NUM_LIT:0>:<NUM_LIT:2>]).strip())<EOL><DEDENT>if spe[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>znum_int[<NUM_LIT:0>] = <NUM_LIT:0><EOL><DEDENT>global index_atomic_number<EOL>index_atomic_number = {}<EOL>for a,b in zip(spe,znum_int):<EOL><INDENT>index_atomic_number[a]=b<EOL><DEDENT>
read isotopes names from h5 files, and convert them
according to standard scheme used inside ppn and mppnp.  Also
Z and A are recalculated, for these species. Isomers are
excluded for now, since there were recent changes in isomers
name. As soon as the isomers names are settled, than Z and A
provided here will be obsolete, and can be changed by usual Z
and A.