Permalink
Browse files

more pep8 refactoring fixes

  • Loading branch information...
1 parent a406e54 commit e6582906041908950b205dfb642ab03607bfe6a4 @rrenaud rrenaud committed May 8, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 analyze.py
View
@@ -65,9 +65,9 @@ def analyze_game(self, game):
per_card_stat = self.card_stats[card]
if (deck, card) not in seen_cards_players:
seen_cards_players.add((deck, card))
- per_card_stat.win_any_accum.AddOutcome(deck.WinPoints())
- per_card_stat.win_weighted_accum.AddOutcome(deck.WinPoints())
- per_card_stat.win_weighted_accum_turn[turnno].AddOutcome(
+ per_card_stat.win_any_accum.add_outcome(deck.WinPoints())
+ per_card_stat.win_weighted_accum.add_outcome(deck.WinPoints())
+ per_card_stat.win_weighted_accum_turn[turnno].add_outcome(
deck.WinPoints())
accumed_by_player[deck][card] += 1
@@ -84,7 +84,7 @@ def analyze_game(self, game):
per_card_stat = self.card_stats[card]
other_avg_freq = total_other_decks[card] / odeck_count
card_diff_index = int(card_accum_dict[card] - other_avg_freq)
- per_card_stat.win_diff_accum[card_diff_index].AddOutcome(
+ per_card_stat.win_diff_accum[card_diff_index].add_outcome(
deck.WinPoints())
def main():

0 comments on commit e658290

Please sign in to comment.