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

Function main

tools/standardTextToCode/readStandardTextDocxFile.py:6–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import pickle
5
6def main():
7 filename = "JVET-T2001-v2.docx"
8 print("Opening file " + filename)
9 document = Document(filename)
10
11 variableDescriptions = parseDocForVariableDescriptions(document)
12
13 print(f"Parsed {len(variableDescriptions)} variable descriptions: ")
14
15 # From where to where to parse. The last entry will not be included.
16
17 parsedTables = parseDocumentTables(document, variableDescriptions)
18 print ("Read {} classes".format(len(parsedTables)))
19
20 # Dump everything to a file (debugging)
21 pickle.dump( parsedTables, open( "tempPiclkle.p", "wb" ) )
22
23if __name__ == "__main__":
24 main()

Callers 1

Calls 2

parseDocumentTablesFunction · 0.90

Tested by

no test coverage detected