Beispiel #1
0
def run_all(sport):
    teams = Team.build_all_with_games(sport)
    team_list = teams.values()
    print("DONE: Build all teams")
    overall_std = calculate_pure_points_metrics(teams, sport)
    print("DONE: Pure points")
    print("Game standard deviation is %s" % round(overall_std, 2))
    write_pretty_schedule_files(team_list, sport)
    print("DONE: Human schedules")
    SORCalculator(team_list, sport, overall_std)
    return team_list
Beispiel #2
0
from models.team import Team

teams = Team.build_all_with_games('basketball')
# for team_id, team in teams.items():
#     print("%s %s %s" % (team_id, team, team.conference))
#
# print (len(teams.values()))