correct start times
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user