Private
Public Access
1
0

Updated - flex chart only, only pace

This commit is contained in:
Sander Roosendaal
2020-11-04 08:36:50 +01:00
parent 2fc303a664
commit d0cf9c745e
3 changed files with 33 additions and 11 deletions

View File

@@ -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',