From 29612adc8ba77d141e433a16d08abeae17c95806 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 14 Jan 2018 20:33:25 +0100 Subject: [PATCH] small bugfix index in dataprep --- rowers/dataprep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 6fa013b4..263f9e3e 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -2032,7 +2032,7 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True, if barchart: # time increments for bar chart time_increments = rowdatadf.ix[:, ' ElapsedTime (sec)'].diff() - time_increments[0] = time_increments[1] + time_increments.ix[0] = time_increments.ix[1] time_increments = 0.5 * time_increments + 0.5 * np.abs(time_increments) x_right = (t2 + time_increments.apply(lambda x: timedeltaconv(x)))