Skip to content

Commit eb209fb

Browse files
committed
..
1 parent 1040fe6 commit eb209fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python/sdist/amici/exporters/sundials/de_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def _get_create_splines_body(self):
908908
def _get_explicit_roots_body(self) -> list[str]:
909909
events = self.model.events()
910910
lines = []
911-
constant_syms = set(self.model.sym("k")) | set(self.model.sym("p"))
911+
constant_syms = self.model._static_symbols(["k", "p", "w"])
912912

913913
for event_idx, event in enumerate(events):
914914
if not (

python/sdist/amici/importers/sbml/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,6 +3116,7 @@ def do_subs(expr, rate_ofs) -> sp.Expr:
31163116

31173117
if isinstance(component, Event):
31183118
if rate_ofs:
3119+
# TODO: remove
31193120
# currently, `root` cannot depend on `w`.
31203121
# this could be changed, but for now,
31213122
# we just flatten out w expressions

0 commit comments

Comments
 (0)