示例#1
0
    def listTrans(self):
        '''
        List all the transitions that have both data and sphinx models 
        associated with them.
        
        Can be used to figure the index of each transition so you can in- or 
        exclude them.
        
        Also indicates whether it is a noisy line or not. 
        '''

        strings = ['%i [%scluded]: %s \t at %.2f uncertainty. The line is %snoisy!%s'\
                    %(ist,ist in self.includedtrans and 'IN' or 'EX',\
                      DataIO.fillOutSpaces(str(st),60),\
                      self.trans_uncertainties[ist],\
                      (not self.noisy[ist] and 'NOT ' or ''),\
                      self.lll_threshold[ist] <> None and \
                        ' The lll threshold is %.2e'%self.lll_threshold[ist] or\
                        '')
                   for ist,st in enumerate(self.translist)]
        print '\n'.join(strings)
示例#2
0
 def listTrans(self):
     
     '''
     List all the transitions that have both data and sphinx models 
     associated with them.
     
     Can be used to figure the index of each transition so you can in- or 
     exclude them.
     
     Also indicates whether it is a noisy line or not. 
     '''
     
     strings = ['%i [%scluded]: %s \t at %.2f uncertainty. The line is %snoisy!%s'\
                 %(ist,ist in self.includedtrans and 'IN' or 'EX',\
                   DataIO.fillOutSpaces(str(st),60),\
                   self.trans_uncertainties[ist],\
                   (not self.noisy[ist] and 'NOT ' or ''),\
                   self.lll_threshold[ist] <> None and \
                     ' The lll threshold is %.2e'%self.lll_threshold[ist] or\
                     '')
                for ist,st in enumerate(self.translist)]
     print '\n'.join(strings)