Private
Public Access
1
0

removing debug stuff

This commit is contained in:
Sander Roosendaal
2021-08-04 18:27:40 +02:00
parent 4b65cbf483
commit f16e92fabd
2 changed files with 16 additions and 0 deletions

View File

@@ -5385,6 +5385,7 @@ def interactive_flex_chart2(id,r,promember=0,
rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=True,
workstrokesonly=workstrokesonly)
if r.usersmooth > 1: # pragma: no cover
for column in columns:
try:
@@ -5438,6 +5439,8 @@ def interactive_flex_chart2(id,r,promember=0,
# replace nans
rowdata.fillna(value=0,inplace=True)
row = Workout.objects.get(id=id)
if rowdata.empty:
return "","No valid data",'','',workstrokesonly
@@ -5508,6 +5511,7 @@ def interactive_flex_chart2(id,r,promember=0,
y1mean = rowdata['y1'].mean()
y2mean = rowdata['y2'].mean()
if xparam != 'time':
xvals = xaxmin+np.arange(100)*(xaxmax-xaxmin)/100.
else: