-
-
Couldn't load subscription status.
- Fork 1.1k
Open
Labels
Sprints!A task that might be good to tackle during sprints!A task that might be good to tackle during sprints!visualisation
Description
Describe the bug
If you try to draw a space and there are no agents in the space, you get an index error
Expected behavior
the space should simply be drawn without any agents
To Reproduce
from mesa.experimental.cell_space import OrthogonalMooreGrid, CellAgent
from mesa import Model
from mesa.visualization import draw_space
model = Model(seed=42)
space = OrthogonalMooreGrid((10,5), random=model.random)
fig, ax = plt.subplots()
draw_space(space, ax=ax)
plt.show()Metadata
Metadata
Assignees
Labels
Sprints!A task that might be good to tackle during sprints!A task that might be good to tackle during sprints!visualisation