From: Nabil Ghodbane Date: Mon, 15 Jan 2024 14:37:41 +0000 (+0100) Subject: bos #40613 [CEA] deprecated np.float X-Git-Tag: V9_13_0a1~27^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbos%2F40613;p=modules%2Fshaper.git bos #40613 [CEA] deprecated np.float --- diff --git a/src/PythonAddons/macros/pipeNetwork/feature.py b/src/PythonAddons/macros/pipeNetwork/feature.py index 1ff9ec621..6fddccc34 100755 --- a/src/PythonAddons/macros/pipeNetwork/feature.py +++ b/src/PythonAddons/macros/pipeNetwork/feature.py @@ -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 !