Private
Public Access
1
0

correct start times

This commit is contained in:
Sander Roosendaal
2020-11-11 15:56:04 +01:00
parent d2a87da5b5
commit d21bf36b3a

View File

@@ -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)