removing some warnings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user