forked from pool/python3-espressomd
Adjust NumPy 2 patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=56
This commit is contained in:
parent
1a0cd08b37
commit
33fd6a829b
@ -41,6 +41,13 @@ index 002340bd2..4539f1af5 100644
|
|||||||
+ old_p3_pos = np.copy(p3.pos)
|
+ old_p3_pos = np.copy(p3.pos)
|
||||||
expected_p3_pos = old_p3_pos - \
|
expected_p3_pos = old_p3_pos - \
|
||||||
np.array((get_lin_pos_offset(system.time, **params_lin), 0, 0))
|
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
|
diff --git a/testsuite/python/test_checkpoint.py b/testsuite/python/test_checkpoint.py
|
||||||
index f295cec44..4b30aaefb 100644
|
index f295cec44..4b30aaefb 100644
|
||||||
--- a/testsuite/python/test_checkpoint.py
|
--- a/testsuite/python/test_checkpoint.py
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 11 19:01:36 UTC 2024 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>
|
||||||
|
|
||||||
|
- Fix numpy.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 11 18:36:23 UTC 2024 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>
|
Wed Sep 11 18:36:23 UTC 2024 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user