From 1e16b92de780ba42db4909bc87eb7b7dcf059949 Mon Sep 17 00:00:00 2001 From: Pip Liggins Date: Fri, 20 Oct 2023 17:56:36 -0700 Subject: [PATCH] fix: change serialisation test accuracy Required for macOS python<3.11 --- tests/integration/test_models/standard_model_tests.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/integration/test_models/standard_model_tests.py b/tests/integration/test_models/standard_model_tests.py index ccf12c6143..d4074e15ef 100644 --- a/tests/integration/test_models/standard_model_tests.py +++ b/tests/integration/test_models/standard_model_tests.py @@ -152,15 +152,11 @@ def test_serialisation(self, solver=None, t_eval=None): else: new_solver = new_model.default_solver - if ( - isinstance(new_model, pybamm.lithium_ion.BaseModel) - and new_model.options["SEI"] != "ec reaction limited (asymmetric)" - ): + if isinstance(new_model, pybamm.lithium_ion.BaseModel): new_solver.rtol = 1e-8 new_solver.atol = 1e-8 - accuracy = 6 - else: - accuracy = 5 + + accuracy = 5 Crate = abs( self.parameter_values["Current function [A]"]