Skip to content

Commit

Permalink
DataCollector: Remove assumptions
Browse files Browse the repository at this point in the history
All three assumptions are now guarded by that we require the Agent and Model super classes to always be initialized. So they are not relevant anymore for the user.
  • Loading branch information
EwoutH committed Sep 21, 2024
1 parent 3dbb5b6 commit fdbdd4a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mesa/datacollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
each containing a list of each agent's id and its values.
Finally, DataCollector can create a pandas DataFrame from each collection.
The default DataCollector here makes several assumptions:
* The model has an agent list called agents
* The model has a dictionary of AgentSets called agents_by_type
* For collecting agent-level variables, agents must have a unique_id
"""

import contextlib
Expand Down

0 comments on commit fdbdd4a

Please sign in to comment.