MCPcopy Create free account
hub / github.com/IENT/YUView / parseContainer

Method parseContainer

tools/standardTextToCode/parseTables.py:262–269  ·  view source on GitHub ↗
(self, table, variableDescriptions)

Source from the content-addressed store, hash-verified

260 def __init__(self):
261 super().__init__(None)
262 def parseContainer(self, table, variableDescriptions):
263 self.parseHeader(table.cell(0, 0).text)
264 t1 = table.cell(0, 1).text.strip()
265 t2 = table.cell(0, 2).text.strip()
266 if (t2 == t1):
267 self.parseChildren(table, 3, variableDescriptions)
268 else:
269 self.parseChildren(table, 2, variableDescriptions)
270 def parseHeader(self, header):
271 header = header.replace(u'\xa0', u' ')
272 bracketOpen = header.find("(")

Callers 1

parseDocumentTablesFunction · 0.95

Calls 2

parseHeaderMethod · 0.95
parseChildrenMethod · 0.80

Tested by

no test coverage detected