Skip to content

overview.checks

The checks of the repository, their results and the links of their models.

A check runs models of one source through the five stages of the pipeline of sbml2cellml.testsuite.runner and writes a results file. The stages differ in their order (the SBML model is the source of the test suite and of BioModels, the CellML model the source of the Physiome check), their roles are the same: the source model is simulated for the expected results, converted to the other language, the converted model is simulated and compared, converted back and simulated again.

Check dataclass

Check(
    name,
    title,
    short,
    page,
    results,
    command,
    unit,
    source,
    url=None,
)

One check of the repository and where its models come from.

link(case_id)

A case id, linked to the page of its model when it has one.

Parameters:

Name Type Description Default
case_id str

id of a case of the check.

required

Returns:

Type Description
str

The markdown link, or the id alone for a check without a url.

Run dataclass

Run(check, result)

The committed run of a check.

load_runs

load_runs(results=None)

Read the results of the checks.

Parameters:

Name Type Description Default
results dict[str, Path] | None

results file per check name, the file of the check itself for a check which is not in the mapping; every path relative to the working directory.

None

Returns:

Type Description
list[Run]

One run per check whose results file exists, in the order of

list[Run]

CHECKS; a missing file is logged and left out, so the pages can be

list[Run]

rendered from the checks which ran.

works

works(run, case_id)

Whether every stage of a case passes.

Parameters:

Name Type Description Default
run Run

a run of a check.

required
case_id str

id of one of its cases.

required

Returns:

Type Description
bool

Whether the model is simulated, converted, reproduces the expected

bool

results, converted back and reproduces them again.