Esempio n. 1
0
 def get_table_header (self, table_name):
     """ Function doc """
     table_num = pkb.get_TableNbr(self.table_def, table_name) - 1
     units = {}
     intervals = {}
     fields = self.table_def[table_num]['Fields']
     for item in fields:
         units[item['FieldName']] = item['Units']
         intervals[item['FieldName']] = item['Processing']
     
     return units, intervals 
Esempio n. 2
0
 def get_unit_info(self, t_name):
     """ 
         gets the units for the table 
     
     arguments:
         t_name:     (string)the table
         
     returns: 
         information on the units
     """
     #~ self.ping()
     tableno = pakbus.get_TableNbr(self.tabledef, t_name) - 1
     
     units = {}
     processing = {}
     fields = self.tabledef[tableno]['Fields']
     for items in fields:
         units[items['FieldName']] = items['Units']
         processing[items['FieldName']] = items['Processing']
     return units, processing