elif viblvl_label is None: # dont label the levels. Wont be able to use the EnergyDatabase to fetch # vibrational energies for lines, however it can still be used to # calculate Partition functions independently from a Spectrum calculation pass else: raise ValueError( "Unexpected viblvl_label value: {0}".format(viblvl_label)) return df def gs(self): from radis.db.degeneracies import gs I = self.isotope return gs(2, I) def gi(self): from radis.db.degeneracies import gi I = self.isotope return gi(2, I) # %% Test if __name__ == "__main__": from radis.test.levels.test_partfunc import _run_testcases print("Testing parfunc: {0}".format(_run_testcases()))
df['viblvl'] = vib_lvl_name_cdsd_pcN(df.p, df.c, df.N) elif viblvl_label == 'pcJN': df['viblvl'] = vib_lvl_name_cdsd_pcJN(df.p, df.c, df.j, df.N) elif viblvl_label is None: # dont label the levels. Wont be able to use the EnergyDatabase to fetch # vibrational energies for lines, however it can still be used to # calculate Partition functions independently from a Spectrum calculation pass else: raise ValueError( 'Unexpected viblvl_label value: {0}'.format(viblvl_label)) return df def gs(self): from radis.db.degeneracies import gs I = self.isotope return gs(2, I) def gi(self): from radis.db.degeneracies import gi I = self.isotope return gi(2, I) # %% Test if __name__ == '__main__': from radis.test.levels.test_partfunc import _run_testcases print('Testing parfunc: {0}'.format(_run_testcases()))