From 8c060342994252a3f52ef278dc1e60b702c64a63 Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:29:40 +0000 Subject: [PATCH] Update tests to reflect change in scale of weights --- tests/algorithms/symmetry/cosym/test_cosym_target.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/algorithms/symmetry/cosym/test_cosym_target.py b/tests/algorithms/symmetry/cosym/test_cosym_target.py index 47e840869a..e82a65f93f 100644 --- a/tests/algorithms/symmetry/cosym/test_cosym_target.py +++ b/tests/algorithms/symmetry/cosym/test_cosym_target.py @@ -50,5 +50,5 @@ def test_cosym_target(space_group): g = t.compute_gradients(minimizer.coords) g_fd = t.compute_gradients_fd(minimizer.coords) assert f < f0 - assert pytest.approx(g, abs=1e-3) == [0] * len(g) - assert pytest.approx(g_fd, abs=1e-3) == [0] * len(g) + assert pytest.approx(list(g), abs=2e-3) == [0] * len(g) + assert pytest.approx(g_fd, abs=2e-3) == [0] * len(g)