-
Notifications
You must be signed in to change notification settings - Fork 17
feature: add seed property to AgentSet, AgentSetRegistry and Space #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #191 +/- ##
==========================================
+ Coverage 89.23% 89.33% +0.09%
==========================================
Files 14 14
Lines 2007 2016 +9
==========================================
+ Hits 1791 1801 +10
+ Misses 216 215 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
WalkthroughThis PR adds a public Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (2)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
tests/test_*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (6)mesa_frames/abstract/space.py (4)
tests/test_grid.py (4)
tests/test_agentsetregistry.py (4)
mesa_frames/abstract/agentset.py (4)
tests/test_agentset.py (5)
mesa_frames/abstract/agentsetregistry.py (4)
🔇 Additional comments (6)
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 |
Summary
This PR addresses Issue #159 by implementing a convenient, read-only seed property across the core abstract classes: AbstractAgentSet, AbstractAgentSetRegistry, and Space. This allows easier access to the model's random seed from within agent sets and spatial components, mirroring the existing access pattern for the random generator.
Implementation Details
Verification
Closes: #159
Summary by CodeRabbit
New Features
seedproperty to AgentSet, AgentSetRegistry, and Space, enabling access to the model's random number generator seed for improved reproducibility and simulation tracking.Tests
✏️ Tip: You can customize this high-level summary in your review settings.