# where:
# 0 - Sunday
# 1 - Monday
# 2 - Tuesday
# 3 - Wednesday
# 4 - Thursday
# 5 - Friday
# 6 - Saturday 

print ("Generating climbing workout program")

startdate = datetime(2016,2,29,tzinfo=pytz.utc)
volume = 550.0
workout_day_inc = [1, 2, 2, 2]
wp = WorkoutProgram("Climbing Training", startdate, volume, 12, "Matt")
dayIndex = 0
workoutCount = 0
totalWorkouts = 36

# ------------------ Workout Generation --------------------#
for week in range(0, wp.workoutprogram_nWeeks):

	dayIndex = dayIndex + workout_day_inc[0]
	wPercent = workout.periodization_equation(workoutCount, totalWorkouts)
	workoutCount = workoutCount + 1 
	workoutdate = wp.workoutprogram_dt_start + timedelta(days=dayIndex)
	wkout = Workout("%s - Strength" % (workoutdate.strftime("%A")), workoutdate, wPercent, volume)
	wkout.add_exercise_target_volume("Climbing", 8)
	rndex = wkout.pick_random_exercise("Core")
 	wkout.add_exercise(rndex['name'])
예제 #2
0
# where:
# 0 - Sunday
# 1 - Monday
# 2 - Tuesday
# 3 - Wednesday
# 4 - Thursday
# 5 - Friday
# 6 - Saturday 

print ("Generating workout program")

startdate = datetime(2016,2,22,tzinfo=pytz.utc)
volume = 1000.0
workout_day_inc = [1, 2, 2, 2]
wp = WorkoutProgram("Strength Training", startdate, volume, 12, "Matt")
dayIndex = 0
workoutCount = 0
totalWorkouts = 36

# ------------------ Workout Generation --------------------#
for week in range(0, wp.workoutprogram_nWeeks):

	dayIndex = dayIndex + workout_day_inc[0]
	wPercent = workout.periodization_equation(workoutCount, totalWorkouts)
	workoutCount = workoutCount + 1 
	workoutdate = wp.workoutprogram_dt_start + timedelta(days=dayIndex)
	wkout = Workout("%s - Strength" % (workoutdate.strftime("%A")), workoutdate, wPercent, volume)
	rndex = wkout.pick_random_exercise("Press")
	wkout.add_exercise_target_volume(rndex['name'], 5)
	rndex = wkout.pick_random_exercise("Jerk")