diff --git a/.github/workflows/test_sbml_semantic_test_suite.yml b/.github/workflows/test_sbml_semantic_test_suite.yml index ddc78e1b89..3c0b3bd149 100644 --- a/.github/workflows/test_sbml_semantic_test_suite.yml +++ b/.github/workflows/test_sbml_semantic_test_suite.yml @@ -9,7 +9,7 @@ on: paths: - .github/workflows/test_sbml_semantic_test_suite.yml - python/sdist/amici/de_export.py - - python/sdist/amici/de_model.py + - python/sdist/amici/de_model_components.py - python/sdist/amici/sbml_import.py - python/sdist/amici/import_utils.py - scripts/run-SBMLTestsuite.sh diff --git a/documentation/python_modules.rst b/documentation/python_modules.rst index 237a0a021f..03ae7a937e 100644 --- a/documentation/python_modules.rst +++ b/documentation/python_modules.rst @@ -25,7 +25,7 @@ AMICI Python API amici.petab_simulate amici.import_utils amici.de_export - amici.de_model + amici.de_model_components amici.plotting amici.pandas amici.logging diff --git a/python/sdist/amici/de_export.py b/python/sdist/amici/de_export.py index b853dd6ad0..126132911d 100644 --- a/python/sdist/amici/de_export.py +++ b/python/sdist/amici/de_export.py @@ -45,7 +45,7 @@ get_switch_statement, csc_matrix, ) -from .de_model import * +from .de_model_components import * from .import_utils import ( ObservableTransformation, SBMLException, diff --git a/python/sdist/amici/de_model.py b/python/sdist/amici/de_model_components.py similarity index 99% rename from python/sdist/amici/de_model.py rename to python/sdist/amici/de_model_components.py index cb0c066e4d..eeeabb35db 100644 --- a/python/sdist/amici/de_model.py +++ b/python/sdist/amici/de_model_components.py @@ -199,7 +199,7 @@ def __init__(self, identifier: str, value: sp.Expr): Create a new AlgebraicEquation instance. :param value: - formula of the algebraic equation, solution is given by + Formula of the algebraic equation, the solution is given by ``formula == 0`` """ super().__init__(sp.Symbol(identifier), identifier, value) diff --git a/python/sdist/amici/sbml_import.py b/python/sdist/amici/sbml_import.py index eb0b739186..5a0e1669ad 100644 --- a/python/sdist/amici/sbml_import.py +++ b/python/sdist/amici/sbml_import.py @@ -32,7 +32,7 @@ DEExporter, DEModel, ) -from .de_model import symbol_to_type, Expression +from .de_model_components import symbol_to_type, Expression from .sympy_utils import smart_is_zero_matrix, smart_multiply from .import_utils import ( RESERVED_SYMBOLS, diff --git a/python/tests/test_de_model.py b/python/tests/test_de_model.py index 8bd750443a..07c8328ed1 100644 --- a/python/tests/test_de_model.py +++ b/python/tests/test_de_model.py @@ -1,5 +1,5 @@ import sympy as sp -from amici.de_model import Event +from amici.de_model_components import Event from amici.import_utils import amici_time_symbol from amici.testing import skip_on_valgrind