some small improvements on multiflex
This commit is contained in:
1
rowers/.#interactiveplots.py
Normal file
1
rowers/.#interactiveplots.py
Normal file
@@ -0,0 +1 @@
|
||||
E408191@CZ27LT9RCGN72.21108:1499200053
|
||||
@@ -3458,6 +3458,8 @@ def multiflex_view(request,userid=0,
|
||||
binsize = chartform.cleaned_data['binsize']
|
||||
if binsize <= 0:
|
||||
binsize = 1
|
||||
if groupby == 'pace':
|
||||
binsize *= 1000
|
||||
|
||||
spmmin = chartform.cleaned_data['spmmin']
|
||||
spmmax = chartform.cleaned_data['spmmax']
|
||||
@@ -3573,6 +3575,8 @@ def multiflex_view(request,userid=0,
|
||||
binsize = chartform.cleaned_data['binsize']
|
||||
if binsize <= 0:
|
||||
binsize = 1
|
||||
if groupby == 'pace':
|
||||
binsize *= 1000.
|
||||
|
||||
spmmin = chartform.cleaned_data['spmmin']
|
||||
spmmax = chartform.cleaned_data['spmmax']
|
||||
@@ -3658,7 +3662,10 @@ def multiflex_view(request,userid=0,
|
||||
'yerror':yerror,
|
||||
})
|
||||
|
||||
if groupby != 'date':
|
||||
|
||||
if groupby == 'pace':
|
||||
df['groupval'] = groups.mean()[groupby].fillna(value=0)/1000.
|
||||
elif groupby != 'date':
|
||||
try:
|
||||
df['groupval'] = groups.mean()[groupby],
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user