Salome HOME
bos #40613 [CEA] deprecated np.float bos/40613 36/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jan 2024 14:37:41 +0000 (15:37 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 15 Jan 2024 14:37:41 +0000 (15:37 +0100)
src/PythonAddons/macros/pipeNetwork/feature.py

index 1ff9ec621ab4697e5eda22fb2f923e759caaf327..6fddccc34a14184ac01cb19597641f30bcc08fb3 100755 (executable)
@@ -232,7 +232,7 @@ Sorties :
                 coox = self.infoPoints[l_noeuds[iaux+jaux]]["X"]
                 cooy = self.infoPoints[l_noeuds[iaux+jaux]]["Y"]
                 cooz = self.infoPoints[l_noeuds[iaux+jaux]]["Z"]
-                vect.append(np.array((coox,cooy,cooz),np.float))
+                vect.append(np.array((coox,cooy,cooz),np.float32))
             cosinus = np.dot(vect[1]-vect[0],vect[1]-vect[2])/(np.linalg.norm(vect[1]-vect[0])* np.linalg.norm(vect[1]-vect[2]))
             #print ("cosinus = {}".format(cosinus))
             # Si l'angle est plat, c'est que les 3 points sont alignés : on arrête... sauf si ce point est un départ d'une autre !