testsuite.runner¶
The pipeline of the harness.
Every runnable case goes through five stages: the roadrunner simulation of the original SBML, the conversion to CellML, the libopencor simulation of the CellML, the conversion back to SBML and the roadrunner simulation of the roundtrip SBML. Every simulation is compared with the expected results of the case. The simulators run in worker processes, the conversions in this process.
roadrunner_selections
¶
Roadrunner selections of the settings variables of the original model.
A species expected as concentration is selected as [id], everything
else by id.
run_case
¶
Run the five stages of a case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
case
|
Case
|
a runnable case. |
required |
work_dir
|
Path
|
directory for the converted files. |
required |
roadrunner
|
SimulatorWorker
|
worker for the SBML simulations. |
required |
libopencor
|
SimulatorWorker
|
worker for the CellML simulation. |
required |
Returns:
| Type | Description |
|---|---|
CaseResult
|
The stage results; a stage whose input stage failed is |
CaseResult
|
stage is |
CaseResult
|
unparsable SBML file). When |
CaseResult
|
|
CaseResult
|
results for |
CaseResult
|
fails, those two stages are |
CaseResult
|
running, and |
CaseResult
|
nothing to compare it with). |
CaseResult
|
|
CaseResult
|
(the case's expected results, or the |
CaseResult
|
is known), |
CaseResult
|
|
run_suite
¶
Run the pipeline for every runnable case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cases
|
list[Case]
|
the cases; unrunnable ones are recorded as skipped. |
required |
work_dir
|
Path
|
directory for the converted files, created if needed. |
required |
timeout
|
float
|
seconds per simulator call. |
60.0
|
progress
|
Callable[[str], None] | None
|
called with the finished status line of the case after
every runnable case, e.g. |
None
|
Returns:
| Type | Description |
|---|---|
SuiteResult
|
The suite result. |