From 870656f4fd0d5fe6c9ac60bf7e8f2951c296d7b6 Mon Sep 17 00:00:00 2001 From: lorenzofavaro <44714920+lorenzofavaro@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:31:28 +0100 Subject: [PATCH] Resolve conflicts (B904, B028, B020) --- pybamm/discretisations/discretisation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pybamm/discretisations/discretisation.py b/pybamm/discretisations/discretisation.py index 7ac07b874e..a0feeb7e12 100644 --- a/pybamm/discretisations/discretisation.py +++ b/pybamm/discretisations/discretisation.py @@ -886,7 +886,7 @@ def _process_symbol(self, symbol): # model.check_well_posedness, but won't be if debug_mode is False try: y_slices = self.y_slices[symbol] - except KeyError: + except KeyError as error: raise pybamm.ModelError( f""" No key set for variable '{symbol.name}'. Make sure it is included in either @@ -897,8 +897,12 @@ def _process_symbol(self, symbol): ) from error ======= """ +<<<<<<< HEAD ) >>>>>>> 58b705e96 (chore: update pre-commit hooks (#3890)) +======= + ) from error +>>>>>>> c8b39db3b (Resolve conflicts (B904, B028, B020)) # Add symbol's reference and multiply by the symbol's scale # so that the state vector is of order 1 return symbol.reference + symbol.scale * pybamm.StateVector(