Skip to content

Commit

Permalink
Fix order of arguments in SingleGrid init
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat-pa authored Jan 6, 2020
1 parent 0893a8f commit 9277b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pd_grid/pd_grid/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, height=50, width=50, schedule_type="Random", payoffs=None, se
Determines the agent activation regime.
payoffs: (optional) Dictionary of (move, neighbor_move) payoffs.
'''
self.grid = SingleGrid(height, width, torus=True)
self.grid = SingleGrid(width, height, torus=True)
self.schedule_type = schedule_type
self.schedule = self.schedule_types[self.schedule_type](self)

Expand Down

0 comments on commit 9277b0f

Please sign in to comment.