Beispiel #1
0
 def picks_against_team(self, team, against_team):
     against_team = nbateam.TEAMS[against_team]
     picks = []
     for player_id in get_player_ids(team):
         print "Geting stats for player: {}".format(player_id)
         stats = nbateam.TeamVsPlayer(team_id=against_team['id'], vs_player_id=player_id)
         tstats = stats.vs_player_overall()
         est_points = 0
         for k in DRAFT_KINGS_WEIGHTS.keys():
             est_points += tstats[k].item()
         if est_points >= MIN_PLAYER_POINTS:
             picks.append(PotentialPick(player_id, est_points))
     return picks