30 print 'Producing a .tex file from plots...' 34 print 'Error: Need path of plots as an argument!' 38 for plotpath
in sys.argv[1:]:
39 validations.append(ValidationPlots(plotpath))
46 for subsection
in cls.presentationsubsections():
47 frames += subsection.write([_
for _
in validations
if _.validationclass == cls])
49 frames += SummarySection().
write(validations)
54 file = open(
'presentation.tex',
'w')
55 file.write(texTemplate.replace(
'[frames]', frames).\
56 replace(
'[time]', time.ctime()))
60 pdfScript = open(
'toPdf.sh',
'w')
61 pdfScript.write(toPdf)
63 os.chmod(
"toPdf.sh", stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH)
def replace(string, replacements)
def validationclasses(validations)