Private
Public Access
1
0

does fitscore

This commit is contained in:
Sander Roosendaal
2020-11-26 09:52:14 +01:00
parent 4550a4fe53
commit a7d6292a11
4 changed files with 133 additions and 70 deletions

View File

@@ -1078,9 +1078,16 @@ def fitscore(rower,workout):
wcpowers = fitfunc(p1wc,times)
scores = 100.*powers/wcpowers
indexmax = scores.idxmax()
try:
indexmax = scores.idxmax()
delta = df.loc[indexmax,'delta']
maxvalue = scores.max()
except ValueError:
indexmax = 0
delta = 0
maxvalue = 0
return scores.max(),df.loc[indexmax,'delta']
return maxvalue,delta
def fetchcp_new(rower,workouts):