Skip to content

Commit 504f4bc

Browse files
authored
Refactor: Move amici.de_model to amici.de_model_components (#2323)
... to make space to move `amici.de_export.DEModel` to `amici.de_model` Related to #2306.
1 parent eb3fd4a commit 504f4bc

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/test_sbml_semantic_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
paths:
1010
- .github/workflows/test_sbml_semantic_test_suite.yml
1111
- python/sdist/amici/de_export.py
12-
- python/sdist/amici/de_model.py
12+
- python/sdist/amici/de_model_components.py
1313
- python/sdist/amici/sbml_import.py
1414
- python/sdist/amici/import_utils.py
1515
- scripts/run-SBMLTestsuite.sh

documentation/python_modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ AMICI Python API
2525
amici.petab_simulate
2626
amici.import_utils
2727
amici.de_export
28-
amici.de_model
28+
amici.de_model_components
2929
amici.plotting
3030
amici.pandas
3131
amici.logging

python/sdist/amici/de_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
get_switch_statement,
4646
csc_matrix,
4747
)
48-
from .de_model import *
48+
from .de_model_components import *
4949
from .import_utils import (
5050
ObservableTransformation,
5151
SBMLException,

python/sdist/amici/de_model.py renamed to python/sdist/amici/de_model_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(self, identifier: str, value: sp.Expr):
199199
Create a new AlgebraicEquation instance.
200200
201201
:param value:
202-
formula of the algebraic equation, solution is given by
202+
Formula of the algebraic equation, the solution is given by
203203
``formula == 0``
204204
"""
205205
super().__init__(sp.Symbol(identifier), identifier, value)

python/sdist/amici/sbml_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
DEExporter,
3333
DEModel,
3434
)
35-
from .de_model import symbol_to_type, Expression
35+
from .de_model_components import symbol_to_type, Expression
3636
from .sympy_utils import smart_is_zero_matrix, smart_multiply
3737
from .import_utils import (
3838
RESERVED_SYMBOLS,

python/tests/test_de_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sympy as sp
2-
from amici.de_model import Event
2+
from amici.de_model_components import Event
33
from amici.import_utils import amici_time_symbol
44
from amici.testing import skip_on_valgrind
55

0 commit comments

Comments
 (0)