diff --git a/rowers/datautils.py b/rowers/datautils.py index afef0d63..bff11450 100644 --- a/rowers/datautils.py +++ b/rowers/datautils.py @@ -404,6 +404,7 @@ def getfastest(df,thevalue,mode='distance'): ones = 1+np.zeros(len(G)) Ghor = np.outer(ones,G) Thor = np.outer(ones,T) + Tver = np.outer(T,ones) Gver = np.outer(G,ones) Gdif = Ghor-Gver Gdif = np.tril(Gdif.T).T @@ -422,7 +423,7 @@ def getfastest(df,thevalue,mode='distance'): restime.append(deltat*i) cp = np.diag(F,i).max() loc = np.argmax(np.diag(F,i)) - thestarttime = np.diag(Thor,i)[loc] + thestarttime = tt[loc] starttimes.append(thestarttime) distance.append(cp)