]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Correction du calcul vHalfTime dans post_csv.py
authorEric Fayolle <eric.fayolle@edf.fr>
Mon, 29 Aug 2022 10:12:04 +0000 (12:12 +0200)
committerEric Fayolle <eric.fayolle@edf.fr>
Mon, 29 Aug 2022 10:12:04 +0000 (12:12 +0200)
ReacteurNumerique/post_csv.py

index 00c15816ca4edb7b685baee052536e8d35dbb387..057e638600e64ed20d2cd0abd485b6f275968702 100644 (file)
@@ -63,7 +63,7 @@ def vHalfTime(arrayNx2):
     Tmin=np.apply_along_axis(min, 0, timeColumn)
     Tmax=np.apply_along_axis(max, 0, timeColumn)
     
-    Thalf=(Tmax-Tmin)/2
+    Thalf=(Tmax-Tmin)/2+Tmin
     idxThalf = (np.abs(timeColumn-Thalf)).argmin()
     valThalf= arrayNx2[idxThalf][1].item()