Skip to content

Commit

Permalink
fix tests warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfrois committed Sep 24, 2024
1 parent cd2eb61 commit 0704d13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/ising/ising/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(

def step(self):
agents_list = list(self.agents)
self.steps += 1000
for i in range(1000):
random_spin = self.random.choice(agents_list)
dE = self.get_energy_change(random_spin)
Expand Down
2 changes: 1 addition & 1 deletion examples/ising/ising/spin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, position, model, init_state):
"""
Create a cell, in the given state, at the given x, y position.
"""
super().__init__(position, model)
super().__init__(model)
self.x, self.y = position
self.state = init_state

Expand Down

0 comments on commit 0704d13

Please sign in to comment.