Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent fa8fd67 commit e9ee6d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mesa/examples/advanced/pd_grid/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mesa
from mesa.examples.advanced.pd_grid.agents import PDAgent
from mesa.discrete_space import OrthogonalMooreGrid
from mesa.examples.advanced.pd_grid.agents import PDAgent


class PdGrid(mesa.Model):
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/advanced/sugarscape_g1mt/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import numpy as np

import mesa
from mesa.examples.advanced.sugarscape_g1mt.agents import Trader
from mesa.discrete_space import OrthogonalVonNeumannGrid
from mesa.discrete_space.property_layer import PropertyLayer
from mesa.examples.advanced.sugarscape_g1mt.agents import Trader


# Helper Functions
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/advanced/wolf_sheep/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from mesa import Model
from mesa.datacollection import DataCollector
from mesa.examples.advanced.wolf_sheep.agents import GrassPatch, Sheep, Wolf
from mesa.discrete_space import OrthogonalVonNeumannGrid
from mesa.examples.advanced.wolf_sheep.agents import GrassPatch, Sheep, Wolf
from mesa.experimental.devs import ABMSimulator


Expand Down
11 changes: 7 additions & 4 deletions mesa/experimental/cell_space/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
space system is experimental and under active development.
"""

import warnings

from mesa.discrete_space.cell import Cell
from mesa.discrete_space.cell_agent import (
CellAgent,
Expand All @@ -33,8 +35,6 @@
from mesa.discrete_space.property_layer import PropertyLayer
from mesa.discrete_space.voronoi import VoronoiGrid

import warnings

__all__ = [
"Cell",
"CellAgent",
Expand All @@ -51,5 +51,8 @@
"VoronoiGrid",
]

warnings.warn("you are importing from mesa.discrete_space,"
"all cell spaces have been moved to mesa.discrete_space", DeprecationWarning)
warnings.warn(
"you are importing from mesa.discrete_space,"
"all cell spaces have been moved to mesa.discrete_space",
DeprecationWarning,
)

0 comments on commit e9ee6d8

Please sign in to comment.