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 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 |
'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 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 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
( |
required |
phase
|
str
|
the phase of a simulation, a key of |
'integration'
|
write_median_figures
¶
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
( |
required |