From 4fe4abfbd01c0bdbb2b6c40dbf9b850a59d9bcec Mon Sep 17 00:00:00 2001 From: raul-silva <40128918+raul-silva@users.noreply.github.com> Date: Wed, 7 May 2025 10:36:51 +0200 Subject: [PATCH] v250507: Inclusion of np.mean missing function WaterZone script was missing a np before mean. Added. --- EMT/lmtanalysis/BuildEventWaterPoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMT/lmtanalysis/BuildEventWaterPoint.py b/EMT/lmtanalysis/BuildEventWaterPoint.py index b9bcefa..b97d3ed 100644 --- a/EMT/lmtanalysis/BuildEventWaterPoint.py +++ b/EMT/lmtanalysis/BuildEventWaterPoint.py @@ -95,7 +95,7 @@ def reBuildEvent(connection, file, tmin=None, tmax=None, pool = None, animalType mass_z = [] for t in range(event.startFrame, event.endFrame + 1): mass_z.append(dicA[t].massZ) - if mean(mass_z) < parameters.MINIMUM_MASS_Z: + if np.mean(mass_z) < parameters.MINIMUM_MASS_Z: waterStopTimeLine.removeEventAt(event.startFrame) waterStopTimeLine.endRebuildEventTimeLine(connection) -- GitLab