Skip to content

Commit

Permalink
Refactor: Move amici.de_model to amici.de_model_components (#2323)
Browse files Browse the repository at this point in the history
... to make space to move `amici.de_export.DEModel` to `amici.de_model`

Related to #2306.
  • Loading branch information
dweindl authored Feb 27, 2024
1 parent eb3fd4a commit 504f4bc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_sbml_semantic_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion documentation/python_modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
get_switch_statement,
csc_matrix,
)
from .de_model import *
from .de_model_components import *
from .import_utils import (
ObservableTransformation,
SBMLException,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/sdist/amici/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_de_model.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 504f4bc

Please sign in to comment.