From 33fd6a829b3f98674de764a1c4f73167ad3730937fa1bcf44ad2677e5fa34a37 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Wed, 11 Sep 2024 20:36:38 +0000 Subject: [PATCH] Adjust NumPy 2 patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=56 --- numpy.patch | 7 +++++++ python3-espressomd.changes | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/numpy.patch b/numpy.patch index 36a761e..ffb0429 100644 --- a/numpy.patch +++ b/numpy.patch @@ -41,6 +41,13 @@ index 002340bd2..4539f1af5 100644 + old_p3_pos = np.copy(p3.pos) expected_p3_pos = old_p3_pos - \ np.array((get_lin_pos_offset(system.time, **params_lin), 0, 0)) +@@ -444,5 +444,5 @@ class LeesEdwards(ut.TestCase): + np.testing.assert_allclose(np.copy(p3.pos_folded), expected_p3_pos) + np.testing.assert_allclose( +- p3.v, p1.v + np.array((params_lin["shear_velocity"], 0, 0))) ++ np.copy(p3.v), np.copy(p1.v) + np.array((params_lin["shear_velocity"], 0, 0))) + + # Check distances diff --git a/testsuite/python/test_checkpoint.py b/testsuite/python/test_checkpoint.py index f295cec44..4b30aaefb 100644 --- a/testsuite/python/test_checkpoint.py diff --git a/python3-espressomd.changes b/python3-espressomd.changes index 7771961..af5359f 100644 --- a/python3-espressomd.changes +++ b/python3-espressomd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 11 19:01:36 UTC 2024 - Jean-Noel Grad + +- Fix numpy.patch + ------------------------------------------------------------------- Wed Sep 11 18:36:23 UTC 2024 - Jean-Noel Grad