def report(self, pdf, reportPath):
'''@brief generate this test's page in the PDF report.
@param pdf pyfpdf-compatible PDF object.
@param reportPath Path of directory containing the pdf report'''
pdf.makeResidualPlotPage("Diverging RGRails Test %i V" % self.startV,
"tempFigures/divergingRGRails %i.jpg" % self.startV,
self.data,
self.residuals,
ROI = self.ROI,
pltRange = [-12, 12])
pdf.cell(epw, pdf.font_size, self.stats, align = 'C', ln = 1)
pdf.passFail(self.passed)
pdf.columnTable(self.data + self.residuals, ROI = self.ROI)
if dump:
testPath = reportPath + "/" + self.title
os.mkdir(testPath)
with open(testPath + "/data.dat", "wb") as output:
pickle.dump(self.data, output)
with open(testPath + "/residuals.dat", "wb") as output:
pickle.dump(self.residuals, output)
评论列表
文章目录