From 936da6f9f8fa180e7d515fc108837d0abc579e80 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 29 Jun 2017 16:02:02 +0200 Subject: [PATCH] additional wmax condition --- rowers/datautils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/datautils.py b/rowers/datautils.py index 0be51d35..376c8d2d 100644 --- a/rowers/datautils.py +++ b/rowers/datautils.py @@ -180,7 +180,7 @@ def getmaxwattinterval(tt,ww,i): if testres: deltat = 1.0e-3*(t_0-t_1) wmax = w_roll.ix[indexmax] - if wmax > 800: + if wmax > 800 or wmax > 800/(5.0e04*deltat): wmax = 0 else: wmax = 0