Salome HOME
bos #40613 [CEA] deprecated np.float
[modules/homard.git] / src / tests / Test / test_5.py
index 32cbf63510c7a63c9a4ebd459c6154caac558b44..af1ec47dfd3921633532282519a6dc47dbe9c6f4 100755 (executable)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2011-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -59,7 +59,7 @@ MESH_NAME = "MESH"
 REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG)
 #========================================================================
 
-salome.salome_init()
+salome.salome_init_without_session()
 
 #========================================================================
 def mesh_exec():
@@ -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