Skip to content
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

Stabilize PropertyLayer #2440

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
11 changes: 0 additions & 11 deletions mesa/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,6 @@ class PropertyLayer:

"""

propertylayer_experimental_warning_given = False

def __init__(
self, name: str, width: int, height: int, default_value, dtype=np.float64
):
Expand Down Expand Up @@ -653,15 +651,6 @@ def __init__(

self.data = np.full((width, height), default_value, dtype=dtype)

if not self.__class__.propertylayer_experimental_warning_given:
warnings.warn(
"The new PropertyLayer and _PropertyGrid classes experimental. It may be changed or removed in any and all future releases, including patch releases.\n"
"We would love to hear what you think about this new feature. If you have any thoughts, share them with us here: https://github.com/projectmesa/mesa/discussions/1932",
FutureWarning,
stacklevel=2,
)
self.__class__.propertylayer_experimental_warning_given = True

def set_cell(self, position: Coordinate, value):
"""Update a single cell's value in-place."""
self.data[position] = value
Expand Down
Loading