dietcoke17
dietcoke17
Two issues surfaced during review of the recovery_rate addition: - New_People_Knowing_Rumor was inflated whenever an agent forgot the rumor and was later re-told it, since newly_learned fired on every adoption...
CI's build-pre job (Mesa installed from its GitHub main branch, 4.0.0a0) fails on AntForaging because PropertyLayer.data returns a memoryview there instead of a numpy.ndarray. Wrapping with np.asarray() gives a zero-copy...
Surely i thought it was problem in my pr so i updated it as per the requirement and after that pr got merged there is no update of this older...
Also after this one we can close #427 i have fixed all three issue showed their separately in 3 prs
@quaquel Thanks for the feedback! quick clarifications required: **On the format:** You're right — `Agent(unique_id=0)` is misleading because `unique_id` can't actually be passed to `__init__`. What format would be clearer?...
Thanks @EwoutH @quaquel for the query Looking at Mesa's design philosophy from contributing.md and the JOSS paper, what i had the picture on my mind that mesa is designed to...
@EwoutH @quaquel should i go with __repr__ and make changes in the pr according to that or should we stick to our __str__?
Thank You @quaquel
I want to clarify your suggestion about "clever parsing of __dict__". You said `__repr__` might be worth doing if it shows more insight into the agent's state. I have three...
This implements `__repr__` method that automatically shows user-defined attributes by parsing __ dict __ filtered to exclude: - Mesa internal fields (model, unique_id, current_action) - Private attributes (starting with _)...