示例#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
示例#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
示例#3
0
def get_fpga_rate(*args):
  return _counted_file_parser.get_fpga_rate(*args)
示例#4
0
def get_fpga_rate(*args):
    return _counted_file_parser.get_fpga_rate(*args)