fix: replace deprecated seed= with rng= in all example models#290
fix: replace deprecated seed= with rng= in all example models#290
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for sending the PR. I'd prefer to have it as part of #273 when we migrate to Mesa 4. Currently mesa-llm has mesa pinned <4 (#272). Another reason is that switching examples to |
Fixes part of #273
All three example models (negotiation, sugarscrap_g1mt, epstein_civil_violence) were using the deprecated seed= parameter in both model.py and app.py files. This causes it to create a FutureWarning in Mesa 3.5 and will break in Mesa 4.0.
This replaces all occurrences of seed=None with rng=None in the function signatures and super().init(seed=seed) with super().init(rng=rng) in all three examples.
All 285 tests pass after the changes made.