Salome HOME
bos #40613 [CEA] deprecated np.float bos/40613 1/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jan 2024 14:40:09 +0000 (15:40 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jan 2024 14:40:09 +0000 (15:40 +0100)
src/tests/Test/test_5.py

index 01baaa970bb16fd0673e287cb450c4948ff0f266..af1ec47dfd3921633532282519a6dc47dbe9c6f4 100755 (executable)
@@ -179,7 +179,7 @@ Python script for MEDCoupling
     cg_hexa = cg_hexa_ml.toNumPyArray()
 # Target
 # ======
-    xyz_p = np.zeros(3, dtype=np.float)
+    xyz_p = np.zeros(3, dtype=np.float32)
     xyz_p[0] = -0.20*float(1-niter) * LG_X
     xyz_p[1] = -0.15*float(1-niter) * LG_Y
     xyz_p[2] = -0.10*float(1-niter) * LG_Z