pymixef.interoperability.sbml module

SBML-compatible ODE declaration subset.

pymixef.interoperability.sbml.import_sbml(path)[source]

Import the declaration-only SBML Level 3 Version 2 Core subset.

Compartments, species, and parameters are returned as plain mappings. Reactions, rules, events, foreign namespaces, and unrecognized content are retained as unsupported compatibility issues instead of being silently translated. Call InterchangeResult.require_supported() to refuse partial imports.

Parameters:

path (str | Path)

Return type:

InterchangeResult[dict[str, Any]]

pymixef.interoperability.sbml.export_sbml(model, path)[source]

Export state declarations to a reviewable SBML Level 3 Version 2 file.

States become species in one default compartment. Rate equations and model fields outside the declaration-only subset are reported as unsupported; the file is still written so callers must inspect the report or call InterchangeResult.require_supported() when partial export is unsafe.

Parameters:
  • model (Mapping[str, Any])

  • path (str | Path)

Return type:

InterchangeResult[Path]