Skip to content

testsuite.submission

The submission of the results to the SBML Test Suite Database.

A submission is an archive with the results of every case which could be simulated, one CSV per case named after it, and a manifest with the versions the results were produced with and the commit of the suite whose cases they answer. A case which the simulator cannot read or integrate has no results and is left out, which is how a submission says that it does not support the case. Uploading the archive is a deliberate step and is not done here.

case_csv

case_csv(case, engine=DEFAULT_ENGINE)

Simulate a case and write its results as the submission names them.

The function runs in the processes of map_cases, which do not share the logging of the process which started them, so it answers with the reason rather than logging it.

Parameters:

Name Type Description Default
case SemanticCase

the case to simulate.

required
engine Engine

the engine to simulate the case with, the default engine of the package by default.

DEFAULT_ENGINE

Returns:

Type Description
str | None

The CSV of the results and an empty message, or None and why the case

str

could not be read or integrated.

write_submission

write_submission(
    suite, output_dir, workers=None, engine=DEFAULT_ENGINE
)

Write the archive which is submitted to the SBML Test Suite Database.

Parameters:

Name Type Description Default
suite SemanticSuite

the suite to run.

required
output_dir Path

directory the archive is written into.

required
workers int | None

number of processes the cases are simulated in, the cores available to this process by default.

None
engine Engine

the engine the cases are simulated with, the default engine of the package by default; the manifest records it.

DEFAULT_ENGINE

Returns:

Type Description
Path

Path of the archive.