Public Member Functions | |
def | __init__ |
def | __str__ |
def | addRow |
def | getCols |
def | getTable |
def | newRow |
def | transpose |
Public Attributes | |
colNames | |
keys | |
rows | |
Private Member Functions | |
def | _newCol |
Definition at line 120 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::__init__ | ( | self | ) |
Definition at line 122 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::__str__ | ( | self | ) |
Definition at line 127 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::_newCol | ( | self, | |
name | |||
) | [private] |
Definition at line 132 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::addRow | ( | self, | |
row, | |||
name | |||
) |
Definition at line 178 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::getCols | ( | self | ) |
Definition at line 138 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::getTable | ( | self, | |
mode = 0 |
|||
) |
Definition at line 150 of file cmsPerfPublish.py.
00151 : 00152 name = "Total" 00153 00154 for key in self.keys: 00155 if key == None: 00156 pass 00157 else: 00158 total1 = 0 00159 total2 = 0 00160 rowobj = self.rows[key] 00161 rowdict = rowobj.getRowDict() 00162 for col in self.colNames: 00163 if col == None: 00164 pass 00165 elif rowdict.has_key(col) and not col == name: 00166 if mode == 1: 00167 total1 += rowdict[col] 00168 else: 00169 (step_tot1, step_tot2) = rowdict[col] 00170 total1 += step_tot1 00171 total2 += step_tot2 00172 if mode == 1: 00173 rowobj.addEntry(name,total1) 00174 else: 00175 rowobj.addEntry(name,(total1,total2)) 00176 00177 return (self.keys, self.rows)
def cmsPerfPublish::Table::newRow | ( | self, | |
name | |||
) |
Definition at line 141 of file cmsPerfPublish.py.
def cmsPerfPublish::Table::transpose | ( | self | ) |
Definition at line 185 of file cmsPerfPublish.py.
00186 : 00187 transp = Table() 00188 for col in self.colnames: 00189 rowobj = transp.newRow(col) 00190 for key in self.keys: 00191 if key == None: 00192 pass 00193 else: 00194 row_dict = self.rows[key].getRowDict() 00195 if row_dict.has_key(key): 00196 rowobj.addEntry(key,row_dict[col]) 00197 return transp
Definition at line 122 of file cmsPerfPublish.py.
Definition at line 122 of file cmsPerfPublish.py.
Definition at line 122 of file cmsPerfPublish.py.