diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 8777367b..9505b4aa 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -2691,6 +2691,8 @@ def interactive_flex_chart2(id, r, promember=0, except TypeError: # pragma: no cover 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") metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics] @@ -2705,8 +2707,8 @@ def interactive_flex_chart2(id, r, promember=0, 'trendline': trendline, 'plottype': plottype, } - - script, div = get_chart("/flex", chart_data) + + script, div = get_chart("/flex", chart_data, debug=False) return script, div, workstrokesonly diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index a60cff57..004c7b87 100644 Binary files a/rowers/tests/testdata/testdata.tcx.gz and b/rowers/tests/testdata/testdata.tcx.gz differ