From 9b79b986a894aff7ede04c8e43609842e5a9401b Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 15 Jan 2024 15:37:41 +0100 Subject: [PATCH] bos #40613 [CEA] deprecated np.float --- src/PythonAddons/macros/pipeNetwork/feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ! -- 2.30.2