Exemplo n.º 1
0
 def get_count_rate(self, pattern):
     ''' get a count rate given a pattern '''
     if pattern[1]==1: 
         return counted_file_parser.get_fpga_rate(pattern[0])
     elif pattern[1]==2: 
         if len(pattern[0])==2: return counted_file_parser.get_number_rate_8x2(*pattern[0])
         if len(pattern[0])==4: return counted_file_parser.get_number_rate_4x4(*pattern[0])
     elif pattern[1]==3: 
         return counted_file_parser.get_special_rate(len(pattern[0]))
     return 0
Exemplo n.º 2
0
 def get_count_rate(self, pattern):
     ''' get a count rate given a pattern '''
     if pattern[1]==1: 
         return counted_file_parser.get_fpga_rate(pattern[0])
     elif pattern[1]==2: 
         if len(pattern[0])==2: return counted_file_parser.get_number_rate_8x2(*pattern[0])
         if len(pattern[0])==4: return counted_file_parser.get_number_rate_4x4(*pattern[0])
     elif pattern[1]==3: 
         return counted_file_parser.get_special_rate(len(pattern[0]))
     return 0
Exemplo n.º 3
0
def get_special_rate(*args):
  return _counted_file_parser.get_special_rate(*args)
Exemplo n.º 4
0
def get_special_rate(*args):
    return _counted_file_parser.get_special_rate(*args)