Skip to content

figure_formats

The formats of the files of a figure, without importing anything of sbmlsim.

A figure of a run is written as the image the renderer of sbmlsim-core draws, SVG or PNG, and beside it as the spec of its chart, JSON, which the report reads. sbmlsim.experiment writes them and sbmlsim.project checks the formats of a project, whose module stays light (it imports no experiment).

figure_formats_of

figure_formats_of(figure_formats)

Get the formats of the files a run writes of every figure.

Parameters:

Name Type Description Default
figure_formats Sequence[str] | None

the formats asked for, DEFAULT_FIGURE_FORMATS without; any case.

required

Returns:

Type Description
list[str]

The formats in lower case and in their order without duplicates,

list[str]

followed by SPEC_FORMAT, which is written beside every image.

Raises:

Type Description
TypeError

if the formats are a single string.

ValueError

for html, with HTML_GONE, and for a format which is none of FIGURE_FORMATS.