bug fix in stroke force chart
This commit is contained in:
@@ -704,12 +704,20 @@ def interactive_forcecurve(theworkouts,workstrokesonly=True,plottype='scatter'):
|
||||
)
|
||||
|
||||
if plottype == 'scatter':
|
||||
sourcepoints = ColumnDataSource(
|
||||
data = dict(
|
||||
peakforceangle = rowdata['peakforceangle'],
|
||||
peakforce = rowdata['peakforce']
|
||||
try:
|
||||
sourcepoints = ColumnDataSource(
|
||||
data = dict(
|
||||
peakforceangle = rowdata['peakforceangle'],
|
||||
peakforce = rowdata['peakforce']
|
||||
)
|
||||
)
|
||||
)
|
||||
except KeyError:
|
||||
sourcepoints = ColumnDataSource(
|
||||
data = dict(
|
||||
peakforceangle = [],
|
||||
peakforce = []
|
||||
)
|
||||
)
|
||||
else:
|
||||
sourcepoints = ColumnDataSource(
|
||||
data = dict(
|
||||
|
||||
Reference in New Issue
Block a user