Private
Public Access
1
0

bug fix in stroke force chart

This commit is contained in:
Sander Roosendaal
2019-10-22 08:37:09 +02:00
parent ec75ba1c16
commit 964416362d

View File

@@ -704,12 +704,20 @@ def interactive_forcecurve(theworkouts,workstrokesonly=True,plottype='scatter'):
) )
if plottype == 'scatter': if plottype == 'scatter':
sourcepoints = ColumnDataSource( try:
data = dict( sourcepoints = ColumnDataSource(
peakforceangle = rowdata['peakforceangle'], data = dict(
peakforce = rowdata['peakforce'] peakforceangle = rowdata['peakforceangle'],
peakforce = rowdata['peakforce']
)
) )
) except KeyError:
sourcepoints = ColumnDataSource(
data = dict(
peakforceangle = [],
peakforce = []
)
)
else: else:
sourcepoints = ColumnDataSource( sourcepoints = ColumnDataSource(
data = dict( data = dict(