def test_transtabl():
    # Init AbsLines
    abslines = [AbsLine(1215.6700*u.AA), AbsLine('CII 1334')]
    #
    tbl = ltlu.transtable_from_speclines(abslines)
    assert len(tbl) == 2
    assert 'logN' in tbl.keys()
    # add keys
    tbl = ltlu.transtable_from_speclines(abslines, add_keys=['A', 'log(w*f)'])
    assert 'A' in tbl.keys()
Example #2
0
 def fill_trans(self, **kwargs):
     """ Fills the ionN Table from the list of components
     """
     self._trans = ltlu.transtable_from_speclines(self.list_of_abslines())
Example #3
0
 def fill_trans(self, **kwargs):
     """ Generates a table of transitions
     """
     self._trans = ltlu.transtable_from_speclines(self.list_of_abslines())
Example #4
0
 def fill_trans(self, **kwargs):
     """ Generates a table of transitions
     """
     self._trans = ltlu.transtable_from_speclines(self.list_of_abslines())
Example #5
0
 def fill_trans(self, **kwargs):
     """ Fills the ionN Table from the list of components
     """
     self._trans = ltlu.transtable_from_speclines(self.list_of_abslines())