test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
html.Table Class Reference

Public Member Functions

def __init__
 
def columnHeaders
 
def getPage
 
def getPurpose
 
def getSection
 
def ncolumns
 
def nrows
 
def rowHeaders
 
def tableAsColumnRow
 
def tableAsRowColumn
 

Private Attributes

 _columnHeaders
 
 _page
 
 _purpose
 
 _rowHeaders
 
 _section
 
 _table
 

Detailed Description

Definition at line 206 of file html.py.

Constructor & Destructor Documentation

def html.Table.__init__ (   self,
  columnHeaders,
  rowHeaders,
  table,
  purpose,
  page,
  section 
)

Definition at line 208 of file html.py.

209  def __init__(self, columnHeaders, rowHeaders, table, purpose, page, section):
210  if len(columnHeaders) != len(table):
211  raise Exception("Got %d columnHeaders for table with %d columns for page %s, section %s" % (len(columnHeaders), len(table), page, section))
212  lenRow = len(table[0])
213  for icol, column in enumerate(table):
214  if len(column) != lenRow:
215  raise Exception("Got non-square table, first column has %d rows, column %d has %d rows" % (lenRow, icol, len(column)))
216  if len(rowHeaders) != lenRow:
217  raise Exception("Got %d rowHeaders for table with %d rows" % (len(rowHeaders), lenRow))
219  self._columnHeaders = columnHeaders
220  self._rowHeaders = rowHeaders
221  self._table = table
223  self._purpose = purpose
224  self._page = page
225  self._section = section
_purpose
Definition: html.py:222
_rowHeaders
Definition: html.py:219
_columnHeaders
Definition: html.py:218
def __init__
Definition: html.py:208
_section
Definition: html.py:224

Member Function Documentation

def html.Table.columnHeaders (   self)

Definition at line 241 of file html.py.

References html.Table._columnHeaders.

242  def columnHeaders(self):
243  return self._columnHeaders
def columnHeaders
Definition: html.py:241
_columnHeaders
Definition: html.py:218
def html.Table.getPage (   self)

Definition at line 229 of file html.py.

References html.Table._page.

230  def getPage(self):
231  return self._page
def getPage
Definition: html.py:229
def html.Table.getPurpose (   self)

Definition at line 226 of file html.py.

References html.Table._purpose.

227  def getPurpose(self):
228  return self._purpose
_purpose
Definition: html.py:222
def getPurpose
Definition: html.py:226
def html.Table.getSection (   self)

Definition at line 232 of file html.py.

References html.Table._section.

233  def getSection(self):
234  return self._section
def getSection
Definition: html.py:232
_section
Definition: html.py:224
def html.Table.ncolumns (   self)

Definition at line 235 of file html.py.

References LMap::impl._table, and html.Table._table.

236  def ncolumns(self):
237  return len(self._table)
def ncolumns
Definition: html.py:235
def html.Table.nrows (   self)

Definition at line 238 of file html.py.

References LMap::impl._table, and html.Table._table.

239  def nrows(self):
240  return len(self._table[0])
def nrows
Definition: html.py:238
def html.Table.rowHeaders (   self)

Definition at line 244 of file html.py.

References html.Table._rowHeaders.

245  def rowHeaders(self):
246  return self._rowHeaders
def rowHeaders
Definition: html.py:244
_rowHeaders
Definition: html.py:219
def html.Table.tableAsColumnRow (   self)

Definition at line 247 of file html.py.

References LMap::impl._table, and html.Table._table.

248  def tableAsColumnRow(self):
249  return self._table
def tableAsColumnRow
Definition: html.py:247
def html.Table.tableAsRowColumn (   self)

Definition at line 250 of file html.py.

References LMap::impl._table, html.Table._table, and ComparisonHelper.zip().

251  def tableAsRowColumn(self):
252  return map(list, zip(*self._table))
def tableAsRowColumn
Definition: html.py:250
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)

Member Data Documentation

html.Table._columnHeaders
private

Definition at line 218 of file html.py.

Referenced by html.Page._appendColumnHeader(), html.Page._formatTables(), and html.Table.columnHeaders().

html.Table._page
private

Definition at line 223 of file html.py.

Referenced by vertexPlots.VertexSummaryTable.getPage(), html.Table.getPage(), trackingPlots.TrackingSummaryTable.getPage(), trackingPlots.TrackingTimingTable.getPage(), and plotting.PlotFolder.getPage().

html.Table._purpose
private

Definition at line 222 of file html.py.

Referenced by vertexPlots.VertexSummaryTable.getPurpose(), html.Table.getPurpose(), trackingPlots.TrackingSummaryTable.getPurpose(), trackingPlots.TrackingTimingTable.getPurpose(), and plotting.PlotFolder.getPurpose().

html.Table._rowHeaders
private

Definition at line 219 of file html.py.

Referenced by html.Table.rowHeaders().

html.Table._section
private

Definition at line 224 of file html.py.

Referenced by html.Table.getSection(), trackingPlots.TrackingSummaryTable.getSection(), trackingPlots.TrackingTimingTable.getSection(), and plotting.PlotFolder.getSection().

html.Table._table
private

Definition at line 220 of file html.py.

Referenced by html.Table.ncolumns(), html.Table.nrows(), html.Table.tableAsColumnRow(), and html.Table.tableAsRowColumn().