Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import exhale_multiproject_monkeypatch # noqa: F401
except ModuleNotFoundError:
# for unclear reasons, the import of exhale_multiproject_monkeypatch
# fails on some systems, because the the location of the editable install
# fails on some systems, because the location of the editable install
# is not automatically added to sys.path ¯\_(ツ)_/¯
import json
from importlib.metadata import Distribution
Expand Down Expand Up @@ -206,6 +206,7 @@ def install_doxygen():
"special-members": "__init__",
"inherited-members": True,
"undoc-members": True,
"ignore-module-all": False,
}

# sphinx-autodoc-typehints
Expand Down
11 changes: 0 additions & 11 deletions doc/python_modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,16 @@ AMICI Python API
:toctree: generated

amici
amici.importers.utils
amici.importers.sbml
amici.importers.sbml.conserved_quantities_demartino
amici.importers.sbml.conserved_quantities_rref
amici.importers.sbml.utils
amici.importers.sbml.splines
amici.importers.pysb
amici.importers.bngl
amici.importers.antimony
amici.importers.petab
amici.importers.petab.v1
amici.importers.petab.v1.import_helpers
amici.importers.petab.v1.parameter_mapping
amici.importers.petab.v1.petab_import
amici.importers.petab.v1.pysb_import
amici.importers.petab.v1.sbml_import
amici.jax
amici.exporters.sundials.de_export
amici.sim.sundials
amici.sim.sundials.plotting
amici.sim.sundials.gradient_check
amici.sim.sundials.petab.v1
amici.logging
amici.adapters.fiddy
11 changes: 8 additions & 3 deletions python/sdist/amici/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""
AMICI
-----

The AMICI Python module provides functionality for importing SBML or PySB
models and turning them into C++ Python extensions.
"""
Expand All @@ -18,6 +15,14 @@
from types import ModuleType
from typing import Any

__all__ = [
"import_model_module",
"AmiciVersionError",
"get_model_root_dir",
"get_model_dir",
"__version__",
]


def _get_amici_path():
"""
Expand Down
5 changes: 4 additions & 1 deletion python/sdist/amici/adapters/fiddy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
Adapters for using AMICI with the `fiddy <https://github.com/ICB-DCM/fiddy/>`__
package for finite difference checks.

NOTE: Like fiddy, this module is experimental and subject to change.

.. note::

Like fiddy, this module is experimental and subject to change.
"""

from __future__ import annotations
Expand Down
2 changes: 2 additions & 0 deletions python/sdist/amici/importers/antimony/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from pathlib import Path

__all__ = ["antimony2sbml", "antimony2amici"]


def antimony2sbml(ant_model: str | Path) -> str:
"""Convert Antimony model to SBML.
Expand Down
2 changes: 2 additions & 0 deletions python/sdist/amici/importers/bngl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

from ..pysb import pysb2amici

__all__ = ["bngl2amici"]


def bngl2amici(bngl_model: str, *args, **kwargs) -> None:
r"""
Expand Down
6 changes: 6 additions & 0 deletions python/sdist/amici/importers/pysb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
symbol_with_assumptions,
)

__all__ = [
"pysb_model_from_path",
"pysb2amici",
"pysb2jax",
]

CL_Prototype = dict[str, dict[str, Any]]
ConservationLaw = dict[str, dict | str | sp.Basic]

Expand Down
7 changes: 7 additions & 0 deletions python/sdist/amici/importers/sbml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@
)
from amici.logging import get_logger, log_execution_time, set_log_level

__all__ = [
"SbmlImporter",
"SBMLException",
"MeasurementChannel",
"assignment_rules_to_observables",
]

SymbolicFormula = dict[sp.Symbol, sp.Expr]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from amici.logging import get_logger

__all__ = ["compute_moiety_conservation_laws"]

logger = get_logger(__name__, logging.ERROR)

# increase recursion limit for recursive quicksort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import numpy as np

__all__ = ["nullspace_by_rref", "rref"]


def rref(
mat: np.array, round_ndigits: Literal[False] | int | None = None
Expand Down
6 changes: 6 additions & 0 deletions python/sdist/amici/importers/sbml/splines.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
sbml_mathml,
)

__all__ = [
"UniformGrid",
"AbstractSpline",
"CubicHermiteSpline",
]

logger = get_logger(__name__, logging.WARNING)


Expand Down
2 changes: 2 additions & 0 deletions python/sdist/amici/sim/sundials/gradient_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
run_simulation,
)

__all__ = ["check_finite_difference"]


def check_finite_difference(
x0: Sequence[float],
Expand Down
Loading