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)
def replace(string, replacements)
S & print(S &os, JobReport::InputFile const &f)
def validationclasses(validations)