Skip to content

Commit

Permalink
Update space.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored and rht committed May 9, 2023
1 parent 90bb1d7 commit 8856264
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mesa/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,10 +858,16 @@ class HexGrid(HexSingleGrid):
width, height: The grid's width and height.
torus: Boolean which determines whether to treat the grid as a torus.
"""

def __init__(self, width: int, height: int, torus: bool) -> None:
super().__init__(width, height, torus)
warn(("HexGrid is being deprecated; use instead HexSingleGrid or HexMultiGrid "
"depending on your use case."), DeprecationWarning)
warn(
(
"HexGrid is being deprecated; use instead HexSingleGrid or HexMultiGrid "
"depending on your use case."
),
DeprecationWarning,
)


class ContinuousSpace:
Expand Down

0 comments on commit 8856264

Please sign in to comment.