Skip to content

Commit 6ccdc38

Browse files
fix(el_farol): update test to use num_agents instead of N (#391)
While checking the el_farol example in mesa-examples, I noticed the test was failing because the ElFarolBar constructor expects `num_agents`, but the test was passing `N`. This PR updates the test to use the correct parameter.
1 parent 0810640 commit 6ccdc38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/el_farol/tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ def test_convergence():
99
# Testing that the attendance converges to crowd_threshold
1010
attendances = []
1111
for _ in range(10):
12-
model = ElFarolBar(N=100, crowd_threshold=crowd_threshold, memory_size=10)
12+
model = ElFarolBar(
13+
num_agents=100, crowd_threshold=crowd_threshold, memory_size=10
14+
)
1315
for _ in range(100):
1416
model.step()
1517
attendances.append(model.attendance)

0 commit comments

Comments
 (0)