saving state
This commit is contained in:
@@ -1707,14 +1707,15 @@ def interactive_forcecurve(theworkouts,workstrokesonly=True,plottype='scatter'):
|
||||
|
||||
def getfatigues(
|
||||
fatigues,fitnesses,dates,testpower,testduration,
|
||||
impulses,
|
||||
startdate,enddate,user,metricchoice,kfatigue,kfitness):
|
||||
|
||||
fatigue = 0
|
||||
fitness = 0
|
||||
|
||||
impulses = []
|
||||
for f in fatigues:
|
||||
impulses.append(0)
|
||||
#impulses = []
|
||||
#for f in fatigues:
|
||||
# impulses.append(0)
|
||||
|
||||
lambda_a = 2/(kfatigue+1)
|
||||
lambda_c = 2/(kfitness+1)
|
||||
@@ -1813,11 +1814,13 @@ def performance_chart(user,startdate=None,enddate=None,kfitness=42,kfatigue=7,
|
||||
fatigues = df['fatigue'].values.tolist()
|
||||
fitnesses = df['fitness'].values.tolist()
|
||||
testduration = df['testduration'].values.tolist()
|
||||
impulses = df['impulse'].tolist()
|
||||
|
||||
fatigues,fitnesses,dates,testpower,testduration,impulses = getfatigues(fatigues,
|
||||
fitnesses,
|
||||
dates,
|
||||
testpower,testduration,
|
||||
impulses,
|
||||
startdate,enddate,
|
||||
user,metricchoice,
|
||||
kfatigue,kfitness)
|
||||
|
||||
Reference in New Issue
Block a user