Closed Datseris closed 3 months ago
allkinds
should be available as soon as https://github.com/JuliaRegistries/General/pull/102631 is merged
I think replicate! should be already good as it is, you just need to pass pos
as a kwarg: replicate!(agent, model; pos=new_pos)
Released a new version of MixedStructTypes with the new function kindconstructor
, which seems to me a good name because it is specific and explicit enough. If you find any instances of MixedStructTypes.constructor inside Agents, you should change that to the new name
the test failure is no sense in the last commit, I just bumped the Agents.jl version
trying to rerun now
I try to merge if this resolves it, otherwise we make another PR
This PR changes the
EventQueueABM
to use exclusively the@multiagent
macro and thekindof
shenanigans. That is because one cannot use multiple dispatch anyways inEventQueueABM
to decide the event, so there is no obvious benefit in usingUnion
type agents.The PR also re-organizes the codebase.
Additionally, this PR makes the plotting and data collection codes model agnostic. Detaches them entirely from the internals of the
AgentBasedModel
type that is passed into the plotting recipe.IT does the same for data collection and
run!
.TODOs: