Skip to content

Agents vs Agents_By_Type #1883

Answered by rht
rboone2020 asked this question in Q&A
Nov 19, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

schedule.agents_by_type is a dictionary of dictionaries. You will have to do this instead

for agent_id, agent in self.schedule.agents_by_type[Sheep].items():

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rboone2020
Comment options

Answer selected by rboone2020
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants