Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sensitivities for models with events / extend and cleanup event tests #2084

Merged
merged 13 commits into from
May 16, 2023
5 changes: 1 addition & 4 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,7 @@ def _compute_equation(self, name: str) -> None:
)

# additional part of chain rule state variables
# This part only works if we use self.eq('xdot')
# instead of self.sym('xdot'). Not immediately clear
# why that is.
tmp_dxdp += smart_multiply(self.eq("xdot"), self.sym("stau").T)
tmp_dxdp += smart_multiply(self.sym("xdot_old"), self.sym("stau").T)

# finish chain rule for the state variables
tmp_eq += smart_multiply(self.eq("ddeltaxdx")[ie], tmp_dxdp)
Expand Down
Loading