File: 0020-fix-deprecated-np-float.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 (19 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit 734691367a47863bb7ce5788cff938e56cbb56bf
Author: Stephen Sinclair <radarsat1@gmail.com>
Date:   Tue Jan 10 16:07:14 2023 +0000

    Fix use of deprecated "np.float".

diff --git a/numerics/swig/tests/test_linalg.py b/numerics/swig/tests/test_linalg.py
index 636f944..88fb97c 100644
--- a/numerics/swig/tests/test_linalg.py
+++ b/numerics/swig/tests/test_linalg.py
@@ -7,7 +7,7 @@ from siconos.tests_setup import working_dir
 
 data_dir = working_dir + '/data/'
 
-dbl_eps = np.finfo(np.float).eps
+dbl_eps = np.finfo(float).eps
 
 
 def check_size(sa, sb):