adding tests for new analysis
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user