Private
Public Access
1
0

Fixed Ranking distances

This commit is contained in:
sanderroosendaal
2016-11-03 12:03:56 +01:00
parent 8a0518d7eb
commit 3cba8e5e45
5 changed files with 1118 additions and 1097 deletions

View File

@@ -186,7 +186,7 @@ def interactive_cpchart(thedistances,thesecs,theavpower,
velo = thedistances/thesecs
p = pd.Series(500./velo)
p2 = p.fillna(method='ffil').apply(lambda x: timedeltaconv(x))
p2 = p.fillna(method='ffill').apply(lambda x: timedeltaconv(x))
source = ColumnDataSource(
data = dict(
@@ -198,7 +198,7 @@ def interactive_cpchart(thedistances,thesecs,theavpower,
),
power = theavpower,
pace = nicepaceformat(p2),
fpace = nicepaceformat(p2),
)
)
@@ -228,7 +228,7 @@ def interactive_cpchart(thedistances,thesecs,theavpower,
tim = niceformat(
fitt.fillna(method='ffill').apply(lambda x: timedeltaconv(x))
),
pace = nicepaceformat(fitp2),
fpace = nicepaceformat(fitp2),
)
)
@@ -269,7 +269,7 @@ def interactive_cpchart(thedistances,thesecs,theavpower,
),
spm = 0*fitpower,
power = fitpower,
pace = nicepaceformat(fitp2),
fpace = nicepaceformat(fitp2),
)
)