2165 def create(self, openFiles, legendLabels, dqmSubFolder):
2166 if isinstance(dqmSubFolder, list):
2167 if len(dqmSubFolder) != len(openFiles):
2168 raise Exception(
"When dqmSubFolder is a list, len(dqmSubFolder) should be len(openFiles), now they are %d and %d" % (len(dqmSubFolder), len(openFiles)))
2170 dqmSubFolder = [dqmSubFolder]*len(openFiles)
2171 dqmSubFolder = [sf.subfolder
if sf
is not None else None for sf
in dqmSubFolder]
2174 for f, sf
in zip(openFiles, dqmSubFolder):
2177 if tdir
is not None:
2178 data = self._tableCreator.create(tdir)
2193 for i
in xrange(len(tbl)):
2195 tbl[i] = [
None]*colLen
2197 return html.Table(columnHeaders=legendLabels, rowHeaders=self._tableCreator.headers(), table=tbl,
2198 purpose=self._tableCreator.getPurpose(), page=self._tableCreator.getPage(), section=self._tableCreator.getSection(dqmSubFolder[0]))