Skip to content

Commit

Permalink
For Python 3.10 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Nov 21, 2024
1 parent 7c550bc commit 166cf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantecon/game_theory/polymatrix_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_player(self, player_idx: int) -> Player:
newaxes = np.full((self.N-1, self.N-1), np.newaxis)
np.fill_diagonal(newaxes, slice(None))
payoff_array = sum([
self.polymatrix[(player_idx, opps[j])][:, *newaxes[j]]
self.polymatrix[(player_idx, opps[j])][slice(None), *newaxes[j]]
for j in range(self.N-1)
])
return Player(payoff_array)
Expand Down

0 comments on commit 166cf78

Please sign in to comment.