--
Project repos: github.com/projectmesa
---
You received this message because you are subscribed to the Google Groups "ProjectMesa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectmesa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectmesa/9b811511-2e6b-4a1a-9449-321463c2fc29n%40googlegroups.com.
Yilin: If I am understanding correctly you want to retrieve the agent by its unique_id, correct?
The agent scheduler in mesa.time is an Ordered Dictionary. so you can retrive the agent object by calling ``` <model.scheduler>._agents[<unique_id>]```, that will return the agent object.
Tom Pike
Sent from Mail for Windows 10
To view this discussion on the web visit https://groups.google.com/d/msgid/projectmesa/5e6e40c3-01a5-498a-8f9d-202d2b811d12n%40googlegroups.com.