Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Feb 20, 2024
1 parent 4afda31 commit 6b49c49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2259,16 +2259,16 @@ def _compute_equation(self, name: str) -> None:

elif name == "dwdx":
if (
list(
expected := list(
map(
ConservationLaw.get_val,
reversed(self.conservation_laws()),
)
)
!= self.sym("w")[: self.num_cons_law()]
):
) != (actual := self.sym("w")[: self.num_cons_law()]):
raise AssertionError(
"Conservation laws are not at the beginning of 'w'."
f"Got {actual}, expected {expected}."
)
x = self.sym("x")
self._eqs[name] = sp.Matrix(
Expand Down

0 comments on commit 6b49c49

Please sign in to comment.