bug fix timezone c2 import
This commit is contained in:
@@ -1335,15 +1335,19 @@ def interactive_otwcpchart(powerdf,promember=0):
|
||||
def interactive_agegroup_plot(df,distance=2000,duration=None,
|
||||
sex='male',weightcategory='hwt'):
|
||||
|
||||
if df.empty:
|
||||
return '',''
|
||||
|
||||
age = df['age']
|
||||
power = df['power']
|
||||
name = df['name']
|
||||
season = df['season']
|
||||
|
||||
if duration:
|
||||
plottitle = sex+' '+weightcategory+' '+duration+' min'
|
||||
duration2 = int(duration/60.)
|
||||
plottitle = sex+' '+weightcategory+' %s min' % duration2
|
||||
else:
|
||||
plottitle = sex+' '+weightcategory+' '+distance+'m'
|
||||
plottitle = sex+' '+weightcategory+' %s m' % distance
|
||||
|
||||
# poly_coefficients = np.polyfit(age,power,6)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user