From dc42b3fe2824893174330915fa1a1837a49ec646 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 12 Mar 2018 13:01:22 +0100 Subject: [PATCH] bug fix getmaxwattinterval --- rowers/datautils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/datautils.py b/rowers/datautils.py index 8f35ea1f..4c96f0ca 100644 --- a/rowers/datautils.py +++ b/rowers/datautils.py @@ -297,7 +297,7 @@ def getmaxwattinterval(tt,ww,i): try: t_0 = tt.ix[indexmax] t_1 = tt.ix[indexmax-i] - deltas = tt.ix[indexmax-1:indexmax].diff().dropna() + deltas = tt.ix[indexmax-i:indexmax].diff().dropna() testres = 1.0e-3*deltas.max() < 30. if testres: deltat = 1.0e-3*(t_0-t_1)