32 print(
'Producing a .tex file from plots...')
36 print(
'Error: Need path of plots as an argument!')
40 for plotpath
in sys.argv[1:]:
41 validations.append(ValidationPlots(plotpath))
48 for subsection
in cls.presentationsubsections():
49 frames += subsection.write([_
for _
in validations
if _.validationclass == cls])
51 frames += SummarySection().
write(validations)
56 file = open(
'presentation.tex',
'w')
57 file.write(texTemplate.replace(
'[frames]', frames).\
58 replace(
'[time]', time.ctime()))
62 pdfScript = open(
'toPdf.sh',
'w')
63 pdfScript.write(toPdf)
65 os.chmod(
"toPdf.sh", stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH)