Private
Public Access
1
0

some warnings

This commit is contained in:
Sander Roosendaal
2021-04-27 15:02:30 +02:00
parent b4ed7a0a6b
commit 6f55a975c1
11 changed files with 63 additions and 51 deletions

View File

@@ -836,7 +836,7 @@ def interactive_activitychart2(workouts,startdate,enddate,stack='type',toolbar_l
callback = CustomJS(args={'links':df.link}, code="""
callback = CustomJS(args={'links':df['link']}, code="""
var index = cb_data.source.selected['1d'].indices[0];
console.log(links);
console.log(index);
@@ -3387,8 +3387,8 @@ def interactive_otwcpchart(powerdf,promember=0,rowername="",r=None,cpfit='data',
urls = powerdf['url']
# add world class
wcpower = pd.Series(wcpower)
wcdurations = pd.Series(wcdurations)
wcpower = pd.Series(wcpower,dtype='float')
wcdurations = pd.Series(wcdurations,dtype='float')
# fitting WC data to three parameter CP model
@@ -3683,8 +3683,8 @@ def interactive_cpchart(rower,thedistances,thesecs,theavpower,
errfunc = lambda pars,x,y: fitfunc(pars,x)-y
# p0 = [500,350,10,8000]
wcpower = pd.Series(wcpower)
wcdurations = pd.Series(wcdurations)
wcpower = pd.Series(wcpower,dtype='float')
wcdurations = pd.Series(wcdurations,dtype='float')
# fitting WC data to three parameter CP model
if len(wcdurations)>=4: