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':
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user