fix flex
This commit is contained in:
@@ -2691,6 +2691,8 @@ def interactive_flex_chart2(id, r, promember=0,
|
|||||||
except TypeError: # pragma: no cover
|
except TypeError: # pragma: no cover
|
||||||
rowdata['ytrend'] = y1
|
rowdata['ytrend'] = y1
|
||||||
|
|
||||||
|
rowdata.replace([np.inf, -np.inf], np.nan, inplace=True)
|
||||||
|
rowdata.dropna(axis=1, how='all', inplace=True)
|
||||||
data_dict = rowdata.to_dict("records")
|
data_dict = rowdata.to_dict("records")
|
||||||
|
|
||||||
metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics]
|
metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics]
|
||||||
@@ -2706,7 +2708,7 @@ def interactive_flex_chart2(id, r, promember=0,
|
|||||||
'plottype': plottype,
|
'plottype': plottype,
|
||||||
}
|
}
|
||||||
|
|
||||||
script, div = get_chart("/flex", chart_data)
|
script, div = get_chart("/flex", chart_data, debug=False)
|
||||||
|
|
||||||
return script, div, workstrokesonly
|
return script, div, workstrokesonly
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user