Skip to content

fit.petab_v2.readme

The README of an exported PEtab v2 problem.

to_petab writes a README.md next to problem.yaml, which says in words what the files of the problem hold and what they do not: the fit problem and the values it starts from, the data which is written and the data which is not (the excluded data, the kinds which are not exported and the fit mappings of an unsupported gap with unsupported="skip"), every gap of the problem with what it means for a tool other than sbmlsim, the measurements at the time of a change and how the problem is read back.

The README is a function of the problem and of the version of sbmlsim only: it has no time and no path of the machine, so an export of the same problem writes the same file.

problem_readme

problem_readme(
    exporter,
    petab_problem,
    files,
    origin=None,
    related=None,
)

Get the README of an exported problem.

Parameters:

Name Type Description Default
exporter PetabExporter

the export, after to_problem.

required
petab_problem Problem

the problem it built.

required
files Sequence[str]

the files of the problem relative to its directory, the YAML file first.

required
origin str | None

where the values of the parameters come from, e.g. the best parameters of the fit PK_...; the start values of the fit parameters or a given parameter set without.

None
related Mapping[str, str] | None

the other problems of the same fit by their role, as a path relative to the directory of the problem, e.g. {"validation": "../validation"} for the training problem, see to_petab_problems.

None

Returns:

Type Description
str

The README as markdown.