-
Notifications
You must be signed in to change notification settings - Fork 1
Adding information to report disp
Jens Möckel edited this page Jan 7, 2016
·
3 revisions
A report instance is initialized and filled with data of an already existing report (in this case example1.html
of Example1). The disp
dictionary is extended by a new information.
The changed report is converted to an Html file with the name example5
in folder reports
.
import os
import moliana
os.chdir('./example')
rep = moliana.Report()
rep.read_html(os.path.join('reports','example1.html'))
rep.name = 'example5'
rep.disp.append({'Key':'This line', 'Val':'is new'})
rep.generate_html()
The corresponding report looks like this: