Skip to content

Commit

Permalink
Fix import error for models with events and 0 states
Browse files Browse the repository at this point in the history
Closes #2109
  • Loading branch information
dweindl committed May 25, 2023
1 parent 3b4e12d commit 726237b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,9 @@ def _compute_equation(self, name: str) -> None:
for ie in range(self.num_events())
]

elif name == "deltasx" and self.num_states_solver() * self.num_par() == 0:
self._eqs[name] = []

elif name == "deltasx":
event_eqs = []
for ie, event in enumerate(self._events):
Expand Down

0 comments on commit 726237b

Please sign in to comment.