File: 0027-Update-np.array-to-np.asarray-in-test_Kernel.py.patch

package info (click to toggle)
siconos 4.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,600 kB
  • sloc: cpp: 160,976; ansic: 129,998; fortran: 33,051; python: 20,958; xml: 1,244; sh: 385; makefile: 318
file content (21 lines) | stat: -rw-r--r-- 691 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Stephen Sinclair <radarsat1@gmail.com>
Date: Fri, 14 Nov 2025 21:31:01 +0000
Subject: Update np.array to np.asarray in test_Kernel.py

---
 kernel/swig/tests/test_Kernel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/swig/tests/test_Kernel.py b/kernel/swig/tests/test_Kernel.py
index 315940d..8fad89a 100644
--- a/kernel/swig/tests/test_Kernel.py
+++ b/kernel/swig/tests/test_Kernel.py
@@ -67,7 +67,7 @@ def test_castVector():
         assert x == y
     for x, y in zip(list(v), i):
         assert x == y
-    for x, y in zip(np.array(v), i):
+    for x, y in zip(np.asarray(v), i):
         assert x == y
     assert 3.0 in v
     assert 5.0 not in v