From 6b49c49d5da8ec6a5031c7e386750b17ab229415 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 20 Feb 2024 23:47:40 +0100 Subject: [PATCH] .. --- python/sdist/amici/de_export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/sdist/amici/de_export.py b/python/sdist/amici/de_export.py index 6a21d7d264..fe6e8ab716 100644 --- a/python/sdist/amici/de_export.py +++ b/python/sdist/amici/de_export.py @@ -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(