Skip to content

overview.report

The pages across the checks, docs/benchmarks.md and docs/models.md.

render_benchmarks compares the wall time of the two simulators over the models of every check, render_models which models of every check the converters handle. Both read the committed results of the checks (sbml2cellml.overview.checks), neither of them runs a simulation.

render_benchmarks

render_benchmarks(
    runs, figures=None, medians=MEDIANS_FIGURE
)

Render the benchmark page.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
figures dict[str, str] | None

path of the scatter of every phase, relative to the page, FIGURES when None; written by write_benchmarks.

None
medians str

path of the median wall times, relative to the page.

MEDIANS_FIGURE

Returns:

Type Description
str

The markdown page.

render_models

render_models(runs)

Render the page of the models of the checks.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required

Returns:

Type Description
str

The markdown page: the pass rate of every stage per check, every

str

model of a check of published models with the status of its stages,

str

and the models which do not run at all.

write_benchmarks

write_benchmarks(
    runs, path, figures=None, medians=MEDIANS_FIGURE
)

Write the benchmark page, the scatter of every phase and the medians.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
path Path

markdown file, overwritten.

required
figures dict[str, str] | None

path of the scatter of every phase, relative to the page, FIGURES when None.

None
medians str

path of the median wall times, relative to the page.

MEDIANS_FIGURE

write_models

write_models(runs, path)

Write the page of the models of the checks.

Parameters:

Name Type Description Default
runs list[Run]

the runs of the checks.

required
path Path

markdown file, overwritten.

required