Private
Public Access
1
0

adding tests for new analysis

This commit is contained in:
Sander Roosendaal
2019-05-25 10:06:29 +02:00
parent 2ec230fb98
commit f4e72923b9
4 changed files with 21924 additions and 8 deletions

View File

@@ -325,12 +325,7 @@ def trendflexdata(workouts, options,userid=0):
binsize)
groups = datadf.groupby(pd.cut(datadf[groupby],bins,labels=False))
except ValueError:
messages.error(
request,
"Unable to compete. Probably not enough data selected"
)
url = reverse(user_multiflex_select)
return HttpResponseRedirect(url)
return ('','Error: not enough data')
else:
bins = np.arange(datadf['days ago'].min()-binsize,
datadf['days ago'].max()+binsize,