Private
Public Access
1
0

removing some warnings

This commit is contained in:
Sander Roosendaal
2021-04-14 13:06:34 +02:00
parent 196548fdcc
commit aa2315cb9b
12 changed files with 250 additions and 62 deletions

View File

@@ -2205,6 +2205,7 @@ def cp_from_workoutids(workoutids,debug=False):
if len(data)>1:
df = pd.concat(data,axis=0)
df = df[df['cp'] == df.groupby(['delta'])['cp'].transform('max')]
df = df.sort_values(['delta']).reset_index()
@@ -2250,6 +2251,7 @@ def cp_from_workoutids(workoutids,debug=False):
power2k = fitfunc(p1,t3)
return powerfourmin,power2k,powerhour
@@ -2818,7 +2820,7 @@ def handle_setcp(strokesdf,filename,workoutid,debug=False,**kwargs):
except FileNotFoundError:
pass
if not strokesdf.empty:
try:
totaltime = strokesdf['time'].max()
except KeyError: