Skip to content

Commit

Permalink
fix: change serialisation test accuracy
Browse files Browse the repository at this point in the history
Required for macOS python<3.11
  • Loading branch information
pipliggins committed Oct 21, 2023
1 parent 8e32718 commit 1e16b92
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/integration/test_models/standard_model_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]"]
Expand Down

0 comments on commit 1e16b92

Please sign in to comment.