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