Skip to content

overview.figure

Figures which compare the two simulators over the checks.

render_scatter draws the wall time of libopencor against the wall time of sbmlsim-core, one point per model and one color and marker per check, so a point below the diagonal is a model libopencor is faster for; it draws one of the three phases, the setup of the simulator, the integration or the two together. render_medians draws the median of all three phases per check. Every figure is written twice, for light and for dark backgrounds, and is transparent, as the figures of the reports (sbml2cellml.testsuite.figure).

render_scatter

render_scatter(runs, phase='integration', dark=False)

Render the wall times of the two simulators, one point per model.

Only the models whose converted model reproduces the expected results are shown (sbml2cellml.testsuite.figure.timing_pairs): the two simulators integrate the same dynamics there.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
phase str

the phase of a simulation to compare, a key of PHASES: setup, integration or total, the two together.

'integration'
dark bool

whether the figure is for a dark background.

False

Returns:

Type Description
Figure

The figure with a transparent background.

render_medians

render_medians(runs, dark=False)

Render the median wall time of the two simulators per phase.

One panel per phase of PHASES, in every one of them one pair of bars per check, over the models both simulators ran (sbml2cellml.testsuite.figure.timing_pairs).

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
dark bool

whether the figure is for a dark background.

False

Returns:

Type Description
Figure

The figure with a transparent background.

write_scatter_figures

write_scatter_figures(runs, path, phase='integration')

Write the scatter of a phase for light and for dark backgrounds.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
path Path

SVG file of the figure for light backgrounds, overwritten; the figure for dark backgrounds goes next to it (sbml2cellml.testsuite.figure.dark_path).

required
phase str

the phase of a simulation, a key of PHASES.

'integration'

write_median_figures

write_median_figures(runs, path)

Write the median wall times for light and for dark backgrounds.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
path Path

SVG file of the figure for light backgrounds, overwritten; the figure for dark backgrounds goes next to it (sbml2cellml.testsuite.figure.dark_path).

required