20 from __future__
import print_function
31 print(
'Producing a .tex file from plots...')
35 print(
'Error: Need path of plots as an argument!')
39 for plotpath
in sys.argv[1:]:
40 validations.append(ValidationPlots(plotpath))
47 for subsection
in cls.presentationsubsections():
48 frames += subsection.write([_
for _
in validations
if _.validationclass == cls])
50 frames += SummarySection().
write(validations)
55 file = open(
'presentation.tex',
'w')
56 file.write(texTemplate.replace(
'[frames]', frames).\
57 replace(
'[time]', time.ctime()))
61 pdfScript = open(
'toPdf.sh',
'w')
62 pdfScript.write(toPdf)
64 os.chmod(
"toPdf.sh", stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH)
68 if __name__ ==
'__main__':