-
Notifications
You must be signed in to change notification settings - Fork 14
Rename 'agents' property to 'df' for AgentContainer for issue # 68 #148
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?
Rename 'agents' property to 'df' for AgentContainer for issue # 68 #148
Conversation
chnages done in AgentContainer to move agents to df and change done as rquied in agents/agentset in abstract/concrete. Note: i have depreciated agents to use df instead to keep it compatible with others and will remove once all looks good
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #148 +/- ##
=======================================
Coverage ? 91.72%
=======================================
Files ? 11
Lines ? 1691
Branches ? 0
=======================================
Hits ? 1551
Misses ? 140
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a good direction!
However we are still very early in the development phase so we can deprecate without giving notice to users.
Try removing completely the agents property and test if everything (including examples) work correctly
removing agents property completely, instead use df property, also replacing agents with df in tests and boltzmann_wealth example
for more information, see https://pre-commit.ci
removed agents property completely to use df, all tests passed. Boltzmann_wealth is updated and passed. no change found in sugarscape example |
Alright, before I proceed with my final review, I’d like to tag @Ben-geo to get his thoughts as well. I think this would be a good opportunity for him to test out the review process and share his feedback. |
Thanks a lot for the tag, @adamamer20 ! I went through the implementation and didn’t find anything that needs to be changed. Everything looks solid. (Though there's always a chance I might have missed something, first review 😅) and I was thinking about how will it work after including #146 I like this better but it still does feel like a lot for the end user right? @reyan-singh what do you think?? |
Thanks @Ben-geo for review, yes need to use df instead of agents for agentsets, one of the reason is this give clear hint to users its data frame but more then that as described in issue also this new syntax df avoid confusion when used with model and nested agents |
Changes done in AgentContainer to rename agents as df and change done as required in agents/agentset classes to reflect df in abstract/concrete files
Note: i have depreciated agents to use df instead, to keep it compatible with existing files if any and then good to remove completely once all looks good