Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
728456c
Fix: Auto-increment seed across batch_run iterations
EwoutH Oct 7, 2025
c03c6fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2025
37a0839
Merge remote-tracking branch 'upstream/main' into batch_seed
quaquel Nov 12, 2025
7f456af
add rng as kwarg and deprecate iterations
quaquel Nov 12, 2025
10136f9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 12, 2025
904e796
fix for typo in value error message
quaquel Nov 12, 2025
7972638
Update batchrunner.py
quaquel Nov 12, 2025
529f3ac
Update migration_guide.md
quaquel Nov 16, 2025
7b6eaef
Update migration_guide.md
quaquel Nov 16, 2025
e53e16b
Update migration_guide.md
quaquel Nov 16, 2025
4113a11
Update 9_batch_run.ipynb
quaquel Nov 16, 2025
94c44e3
add support for both seed and rng
quaquel Nov 16, 2025
0778ff4
Update migration_guide.md
quaquel Nov 16, 2025
5db0058
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 16, 2025
27a777d
Update test_batch_run.py
quaquel Nov 17, 2025
0a4ea99
Update test_batch_run.py
quaquel Nov 17, 2025
4726920
Update docs/migration_guide.md
quaquel Nov 17, 2025
7ba67df
Update mesa/batchrunner.py
quaquel Nov 17, 2025
088425a
Update mesa/batchrunner.py
quaquel Nov 17, 2025
435399c
Update batchrunner.py
quaquel Nov 17, 2025
f5b017a
Merge branch 'main' into batch_seed
quaquel Nov 25, 2025
f0167e6
remove forced newlines from migration guide
EwoutH Nov 26, 2025
f2007e3
Merge remote-tracking branch 'upstream/main' into batch_seed
quaquel Dec 5, 2025
9341cce
Update batchrunner.py
quaquel Dec 5, 2025
4ebe7d8
Update test_batch_run.py
quaquel Dec 5, 2025
8b338a9
Update test_batch_run.py
quaquel Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_batch_run.py
  • Loading branch information
quaquel committed Nov 17, 2025
commit 27a777dad1b4866480c5db5238081113cd7d475a
28 changes: 14 additions & 14 deletions tests/test_batch_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 1,
"agent_id": 1,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
{
"RunId": 0,
Expand All @@ -152,7 +152,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 2,
"agent_id": 2,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
{
"RunId": 0,
Expand All @@ -162,7 +162,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 3,
"agent_id": 3,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
]

Expand All @@ -176,7 +176,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 1,
"agent_id": 1,
"agent_local": 250.0,
"rng": None,
"seed": None,
},
{
"RunId": 0,
Expand All @@ -186,7 +186,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 2,
"agent_id": 2,
"agent_local": 250.0,
"rng": None,
"seed": None,
},
{
"RunId": 0,
Expand All @@ -196,7 +196,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 3,
"agent_id": 3,
"agent_local": 250.0,
"rng": None,
"seed": None,
},
]

Expand All @@ -210,7 +210,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 1,
"agent_id": 1,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
{
"RunId": 0,
Expand All @@ -220,7 +220,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 2,
"agent_id": 2,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
{
"RunId": 0,
Expand All @@ -230,7 +230,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 3,
"agent_id": 3,
"agent_local": 250.0,
"rng": 42,
"seed": 42,
},
{
"RunId": 1,
Expand All @@ -240,7 +240,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 1,
"agent_id": 1,
"agent_local": 250.0,
"rng": 31415,
"seed": 31415,
},
{
"RunId": 1,
Expand All @@ -250,7 +250,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 2,
"agent_id": 2,
"agent_local": 250.0,
"rng": 31415,
"seed": 31415,
},
{
"RunId": 1,
Expand All @@ -260,7 +260,7 @@ def test_batch_run(): # noqa: D103
"AgentID": 3,
"agent_id": 3,
"agent_local": 250.0,
"rng": 31415,
"seed": 31415,
},
]

Expand Down Expand Up @@ -291,7 +291,7 @@ def test_batch_run_no_agent_reporters(): # noqa: D103
"Step": 1000,
"enable_agent_reporters": False,
"reported_model_param": 42,
"rng": None,
"seed": None,
}
]

Expand All @@ -315,7 +315,7 @@ def test_batch_run_unhashable_param(): # noqa: D103
"agent_local": 250.0,
"n_agents": 2,
"variable_model_params": {"key": "value"},
"rng": None,
"seed": None,
}

assert result == [
Expand Down
Loading