From 30e446892317df2d98208c7f5b47c9841224ca8f Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 9 Jun 2017 02:15:46 +0200 Subject: [PATCH] bug fix --- rowers/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rowers/views.py b/rowers/views.py index 21d06331..87fdf6f0 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -2938,7 +2938,7 @@ def otwrankings_view(request,theuser=0, indexmax = w_roll.idxmax(axis=1) try: t_0 = tt.ix[indexmax] - t_1 = tt.ix[indexmax-i-2] + t_1 = tt.ix[indexmax-i] deltat = 1.0e-3*(t_0-t_1) wmax = w_roll.ix[indexmax] if not np.isnan(deltat) and not np.isnan(wmax): @@ -2951,6 +2951,7 @@ def otwrankings_view(request,theuser=0, dt = pd.Series(dt) cpw = pd.Series(cpw) + cpvalues = griddata(dt.values, cpw.values, logarr,method='linear',