Private
Public Access
1
0

small speed gain

This commit is contained in:
Sander Roosendaal
2021-01-04 19:45:58 +01:00
parent 92ebe1f319
commit c3f72b2ebd
2 changed files with 8 additions and 6 deletions

View File

@@ -198,12 +198,10 @@ def build_goldmedalstandards(workouts,kfitness):
# fitnesses.append(np.nan)
for w in workouts:
#ids = [w.id for w in workouts.filter(date__gte=w.date-datetime.timedelta(days=90),
# date__lte=w.date)]
ids = [w.id for w in workouts.filter(date__gte=w.date-datetime.timedelta(days=10),
ids = [w.id for w in workouts.filter(date__gte=w.date-datetime.timedelta(days=90),
date__lte=w.date)]
powerdf = df[df['workout'].isin(ids)]
indexmax = powerdf['goldmedalstandard'].idxmax()
theid = powerdf.loc[indexmax,'workout']
@@ -1880,6 +1878,7 @@ def goldmedalscorechart(user,startdate=None,enddate=None):
markerduration.append(np.nan)
duration.append(np.nan)
df = pd.DataFrame({
'markerscore':markerscore,
'markerduration':markerduration,