Skip to content

Commit

Permalink
advanced examples: Use absolute imports
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Oct 24, 2024
1 parent cf9c233 commit 3174cb0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mesa/examples/advanced/epstein_civil_violence/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from mesa.visualization import SolaraViz, Slider, make_space_matplotlib, make_plot_measure

from agents import Citizen, Cop
from model import EpsteinCivilViolence
from mesa.examples.advanced.epstein_civil_violence.agents import Citizen, Cop
from mesa.examples.advanced.epstein_civil_violence.model import EpsteinCivilViolence

COP_COLOR = "#000000"
AGENT_QUIET_COLOR = "#648FFF"
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/advanced/epstein_civil_violence/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mesa

from agents import Citizen, Cop
from mesa.examples.advanced.epstein_civil_violence.agents import Citizen, Cop


class EpsteinCivilViolence(mesa.Model):
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/advanced/pd_grid/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import solara
from mesa.visualization import SolaraViz, make_space_matplotlib, make_plot_measure
from mesa.visualization.UserParam import Slider
from model import PdGrid
from mesa.examples.advanced.pd_grid.model import PdGrid


def pd_agent_portrayal(agent):
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/advanced/pd_grid/model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mesa
from mesa.experimental.cell_space import OrthogonalMooreGrid

from agents import PDAgent
from mesa.examples.advanced.pd_grid.agents import PDAgent


class PdGrid(mesa.Model):
Expand Down

0 comments on commit 3174cb0

Please sign in to comment.