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 faffde7 commit 90bb1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesa/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,8 @@ class HexGrid(HexSingleGrid):
"""
def __init__(self, width: int, height: int, torus: bool) -> None:
super().__init__(width, height, torus)
warn("HexGrid defaults to HexSingleGrid but this space is deprecated in " \
"favor of HexSingleGrid or HexMultiGrid depending on your use case.")
warn(("HexGrid is being deprecated; use instead HexSingleGrid or HexMultiGrid "
"depending on your use case."), DeprecationWarning)


class ContinuousSpace:
Expand Down

0 comments on commit 90bb1d7

Please sign in to comment.