Skip to content

Commit ffb787d

Browse files
committed
..
1 parent 7d72e83 commit ffb787d

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
@@ -914,7 +914,7 @@ def _get_create_splines_body(self):
914914
def _get_explicit_roots_body(self) -> list[str]:
915915
events = self.model.events()
916916
lines = []
917-
constant_syms = set(self.model.sym("k")) | set(self.model.sym("p"))
917+
constant_syms = self.model._static_symbols(["k", "p", "w"])
918918

919919
for event_idx, event in enumerate(events):
920920
if not (

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

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

31303130
if isinstance(component, Event):
31313131
if rate_ofs:
3132+
# TODO: remove
31323133
# currently, `root` cannot depend on `w`.
31333134
# this could be changed, but for now,
31343135
# we just flatten out w expressions

0 commit comments

Comments
 (0)