petab.versions

Handling of PEtab version numbers.

Functions

get_major_version(problem)

Get the major version number of the given problem.

parse_version(version)

Parse a version string into a tuple of integers and suffix.

petab.versions.get_major_version(problem: str | dict | Path | Problem | Problem) int[source]

Get the major version number of the given problem.

petab.versions.parse_version(version: str | int) tuple[int, int, int, str][source]

Parse a version string into a tuple of integers and suffix.