vib_lvl_name = vib_lvl_name_hitran_class1 df.loc[:, 'viblvl_l'] = vib_lvl_name(df['vl']) df.loc[:, 'viblvl_u'] = vib_lvl_name(df['vu']) df.loc[:, 'band'] = df['viblvl_l'] + '->' + df['viblvl_u'] else: raise NotImplementedError( 'Lvlformat not defined for {0}: {1}'.format( molecule, lvlformat)) else: raise NotImplementedError( 'Vibrational bands not yet defined for molecule: ' + '{0} with database format: {1}. '.format(molecule, dbformat) + 'Update add_bands()') if verbose: print(('... lines sorted in {0:.1f}s'.format(time() - t0))) return # %% Test if __name__ == '__main__': from radis.test.lbl.test_bands import run_testcases print('test_bands.py:', run_testcases(plot=True))
vib_lvl_name = vib_lvl_name_hitran_class1 df.loc[:, "viblvl_l"] = vib_lvl_name(df["vl"]) df.loc[:, "viblvl_u"] = vib_lvl_name(df["vu"]) df.loc[:, "band"] = df["viblvl_l"] + "->" + df["viblvl_u"] else: raise NotImplementedError( "Lvlformat not defined for {0}: {1}".format( molecule, lvlformat)) else: raise NotImplementedError( "Vibrational bands not yet defined for molecule: " + "{0} with database format: {1}. ".format(molecule, dbformat) + "Update add_bands()") if verbose: print(("... lines sorted in {0:.1f}s".format(time() - t0))) return # %% Test if __name__ == "__main__": from radis.test.lbl.test_bands import run_testcases print("test_bands.py:", run_testcases(plot=True))