Skip to content

Commit

Permalink
Fix import error for models with events and 0 states (#2112)
Browse files Browse the repository at this point in the history
Closes #2109
  • Loading branch information
dweindl authored May 26, 2023
1 parent fd1e22e commit d301df6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,10 @@ def _compute_equation(self, name: str) -> None:
]

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

event_eqs = []
for ie, event in enumerate(self._events):
tmp_eq = sp.zeros(self.num_states_solver(), self.num_par())
Expand Down

0 comments on commit d301df6

Please sign in to comment.