本文整理汇总了Python中BuildTex.splitTables方法的典型用法代码示例。如果您正苦于以下问题:Python BuildTex.splitTables方法的具体用法?Python BuildTex.splitTables怎么用?Python BuildTex.splitTables使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BuildTex
的用法示例。
在下文中一共展示了BuildTex.splitTables方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: makeReport
# 需要导入模块: import BuildTex [as 别名]
# 或者: from BuildTex import splitTables [as 别名]
def makeReport(inputFileName, outputDir, projectDir):
print '\n Processing input file ' + inputFileName, 'Time:', time.asctime()
#try :
# For each input file create a separate subfolder for all the related files
[inputId, subFolder] = CheckFolders.MakeSubfolder(inputFileName, outputDir)
# Move the prefilled Tex files into the subfolder
BuildTex.MoveFiles(subFolder, projectDir)
# Parse the input file
[graphData, statData] = ParseInput.dataFromFile(inputFileName, inputId, outputDir, subFolder)
# Compute the statistics values and build the charts
StatValues.computeValues(subFolder, statData)
orgSize = len(statData)
if orgSize < 8 :
print '\nNo graph data!'
BuildTex.SimplifyResult(subFolder)
else :
try :
# Create graphs for the reports
graphObject = BuildGraphs.makeGraphObject(graphData)
BuildGraphs.BuildAllGraphs(inputId, subFolder, graphObject)
except Exception as e:
print e.message
# Create PDF
if orgSize > 37 :
BuildTex.insertTables(subFolder, orgSize)
BuildTex.splitTables(subFolder, orgSize)
BuildTex.CreatePdf(outputDir, subFolder, inputId, inputFileName)