Skip to content

fix(examples): warehouse #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/color_patches/color_patches/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import mesa


class ColorCell(mesa.experimental.cell_space.CellAgent):
class ColorCell(mesa.discrete_space.cell_agent.CellAgent):
"""
Represents a cell's opinion (visualized by a color)
"""
Expand Down
2 changes: 1 addition & 1 deletion examples/warehouse/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ An additional item of note is that to reference the RobotAgent created in model
This model requires Mesa's recommended install

```
$ pip install mesa[rec]
$ pip install 'mesa[rec]>=3'
```

## How to Run
Expand Down
5 changes: 2 additions & 3 deletions examples/warehouse/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import solara
from mesa.visualization import SolaraViz
from mesa.visualization.utils import update_counter

from .agents import InventoryAgent
from .model import WarehouseModel
from warehouse.agents import InventoryAgent
from warehouse.model import WarehouseModel

# Constants
LOADING_DOCKS = [(0, 0, 0), (0, 2, 0), (0, 4, 0), (0, 6, 0), (0, 8, 0)]
Expand Down
1 change: 1 addition & 0 deletions examples/warehouse/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mesa[rec]>=3
File renamed without changes.
File renamed without changes.