Updated - flex chart only, only pace
This commit is contained in:
@@ -12,6 +12,7 @@ from scipy import optimize
|
||||
from django.utils import timezone
|
||||
|
||||
from math import log10
|
||||
from rowers.mytypes import otwtypes,otetypes
|
||||
|
||||
nometrics = [
|
||||
'originalvelo',
|
||||
@@ -361,6 +362,26 @@ yaxminima = {ax[0]:ax[2] for ax in axes}
|
||||
|
||||
yaxmaxima = {ax[0]:ax[3] for ax in axes}
|
||||
|
||||
def get_yaxminima(r,metric,mode):
|
||||
if metric == 'pace':
|
||||
if mode in otetypes:
|
||||
return r.slowpaceerg
|
||||
else:
|
||||
return r.slowpaceotw
|
||||
|
||||
return yaxminima[metric]
|
||||
|
||||
def get_yaxmaxima(r,metric,mode):
|
||||
if metric == 'pace':
|
||||
if mode in otetypes:
|
||||
return r.fastpaceerg
|
||||
else:
|
||||
return r.fastpaceotw
|
||||
|
||||
return yaxmaxima[metric]
|
||||
|
||||
|
||||
|
||||
defaultfavoritecharts = (
|
||||
{
|
||||
'yparam1':'pace',
|
||||
|
||||
Reference in New Issue
Block a user