caption='Simulator Support' ) #A C EREV GLK I VS V.max V.min V[102] V[240:249].mean V[90:99].mean #10000 1.0 -51 0.3 0 -51 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -51 0.3 0 -31 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -31 0.3 0 -51 OK -31.000000 (-31.0 [eps:eps: 0.005 ]) OK -51.000000 (-51.0 [eps:eps: 0.005 ]) OK -31.000000 (-31.0 [eps:eps: 0.005 ]) OK -31.000000 (-31.0 [eps:eps: 0.005 ]) OK -31.000000 (-31.0 [eps:eps: 0.005 ]) #10000 1.0 -31 0.3 0 -31 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -51 0.3 120 -51 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -31 0.3 120 -31 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -51 1.3 120 -51 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -51 0.3 200 -51 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -31 0.3 200 -31 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** #10000 1.0 -51 1.3 200 -51 *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** *** MISSING! *** s = Section('Scenario001 - Response of passive cell to step current injection', Section('Overview', Section('Description', VerbatimBlock(code, caption='Machine Readble Desc.') ), Section('Notes', Paragraph(notes) ), Section('At a glance', table1 ), ), ) #s.to_pdf(filename=os.path.expanduser("~/Desktop/f1.pdf")) s.to_html(output_dir=os.path.expanduser("~/Desktop/test_html_out/"))
#!/usr/bin/python # -*- coding: utf-8 -*- import pylab, numpy from mredoc import Section, Figure, Table # A simple function that returns a matplotlib Figure def generate_figure(): fig = pylab.figure() t = numpy.linspace(0, 10) pylab.plot(t, numpy.exp(-t) * numpy.sin(10 * t)) return fig # Create the summary of the simulations # and write to HTML and LaTeX summary = Section("My Document", Section("A Sub-Section", "This is an introductory paragraph", Figure( generate_figure(), caption="$e^{-t}*sin(10t)$" ), Table(['x', '2x'], [('%d' % x, '%d' % (2*x) ) for x in [0, 1, 2, 3]]), "Some more text describing the results" ) ) summary.to_pdf( filename="./_output/example1_minimal/pdf/output.pdf") summary.to_html( output_dir="./_output/example1_minimal/html/")