From 1b95919223512afb39225bfa22d5faadd5ebfa17 Mon Sep 17 00:00:00 2001 From: Vincent Favre-Nicolin Date: Wed, 25 Nov 2026 09:53:23 +0100 Subject: [PATCH 1/2] test: tolerate round-off in orthonormal coordinates Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tests/test_array_returns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_array_returns.py b/tests/test_array_returns.py index 4ce9765..5e4eddf 100644 --- a/tests/test_array_returns.py +++ b/tests/test_array_returns.py @@ -71,7 +71,9 @@ def test_GetOrthonormalCoords(self): xyz = self.crystal.GetOrthonormalCoords(0.1, 0.2, 0.3) self.assertIsInstance(xyz, np.ndarray) np.testing.assert_allclose( - xyz, self.crystal.FractionalToOrthonormalCoords(0.1, 0.2, 0.3) + xyz, + self.crystal.FractionalToOrthonormalCoords(0.1, 0.2, 0.3), + atol=1e-14, ) def test_GetMinDistanceTable(self): From 7c6b2efe6d48f226afc77f0ffbc49372ebf75a25 Mon Sep 17 00:00:00 2001 From: Vincent Favre-Nicolin Date: Wed, 25 Nov 2026 10:08:18 +0100 Subject: [PATCH 2/2] docs: add news item for the coordinate tolerance fix Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- news/135.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 news/135.rst diff --git a/news/135.rst b/news/135.rst new file mode 100644 index 0000000..b98e2da --- /dev/null +++ b/news/135.rst @@ -0,0 +1,24 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Avoid a spurious Linux aarch64 test failure by allowing floating-point + round-off near zero in the orthonormal coordinate test. + +**Security:** + +*