-
Notifications
You must be signed in to change notification settings - Fork 125
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
Recreate add_agent!(agent,...) + new constructor for agents #946
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #946 +/- ##
==========================================
- Coverage 92.18% 92.15% -0.04%
==========================================
Files 33 33
Lines 2330 2344 +14
==========================================
+ Hits 2148 2160 +12
- Misses 182 184 +2 ☔ View full report in Codecov by Sentry. |
ok, I realized we only need to reabilitate In general, I also added the constructors accepting as the first argument the model instance so that it creates agents the way it should. I will document it in the agent macro docstring. |
Ι agree with you. This is an unfortunate naming. My worry however is that this function is so fundamental, and so integrated into the package and all its usage, that changing would be just too much. What I think is the best solution is to find a better name alltogether for the function. How about I believe that on average it is more common that the user wants agents added to random positions rather than a specified position hence I would argue that the less verbose function What do you think of that? This means that |
Thought about this a bit, and I agree with you that |
@Tortar what is the status here? is this PR ready for review? |
Need still to finish this, I'll do it today |
Should be okay now! |
ok very good :D, same tests failing as in #875, locally everything works as in the other PR so we can merge both, but something is strange on Github and we should try to understand what |
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.
Yes. Just make sure you add the changelog entry for the deprecation and then you can merge. (also couple of minor comments)
Closes #945