-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseasonTeamStats.py
37 lines (31 loc) · 1.36 KB
/
seasonTeamStats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## seasonTeamStats.py.py #######################################################
## just a quick back of the envelope way to get all teams ######################
## on the docket to load themselves up and report their ########################
## team stats in the console ###################################################
################################################################################
from sys import argv
from outputs import *
## I cant remember exactly what this was needed for, its some very specific
## aspect of graphing with matplotlib or something
if(__name__ == "__main__"):
leagueId = argv[1]
## ie 'watMu'
levelId = argv[2]
## ie 'beginner'
seasonId = argv[3]
## ie 'winter2016'
## ids needed to open the proper folders and csv files contained within
if(leagueId == 'nhl'):
seasons = getAllSeasons(leagueId)
else:
seasons = getAllSeasons(leagueId, levelId)
## retrieve list of seasons from the manifest for this level
##franchises = getFranchiseList(leagueId, levelId)
for season in seasons:
if(season.getSeasonId() == seasonId):
for team in season.Teams:
print team.getDescriptionString(), '\n'
##plotAllTeams(seasons, leagueId, levelId)
##plotAllTopPlayoffTeams(seasons, leagueId, levelId)
##plotAllTopPlayoffTeamsDeltas(seasons, leagueId, levelId)
##plotAllTopPlayoffTeamsVariables(seasons, leagueId, levelId, franchises)