Use scenario for all examples in benchmarks#3314
Conversation
|
Thanks for the PR. As described (on a weird location) in our examples Readme, we make a distinction between basic and advanced examples:
Since |
|
In #3307, I suggested fixing it in this way. The main reason for this is that in Mesa 4, we want |
|
Sure, we're targeting 4.0.0 now anyways. |
quaquel
left a comment
There was a problem hiding this comment.
benchmarks don't yet run, see my suggested/suspected fix.
Co-authored-by: Jan Kwakkel <[email protected]>
Its expected, because main branch still has broken code. However I am trying to fix the other errors |
|
Fixed the |
9204eeb to
d8efef2
Compare
* Initial Commit * Update benchmarks/global_benchmark.py Co-authored-by: Jan Kwakkel <[email protected]> * Fix configurations * Add test coverage --------- Co-authored-by: Jan Kwakkel <[email protected]>
This PR refactors the core examples used in the global performance benchmarks to utilize the
Scenario.Changes Made
Schelling,BoidFlockers, andWolfSheepmodels to accept aScenarioobject upon initialization rather than individual parameters.SchellingScenario,BoidsScenario) for each model.global_benchmarks.pyto dynamically unpack configuration parameters intoScenarioobjects during the run.Fixes #3307