Skip to content

Removing Deprecations Warnings from agent_portrayal and propertylayer_portrayal until next release. #2797

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

Merged
merged 2 commits into from
May 27, 2025
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
4 changes: 2 additions & 2 deletions mesa/visualization/mpl_space_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_agent_pos(agent, space):
warnings.warn(
"Returning a dict from agent_portrayal is deprecated and will be removed "
"in a future version. Please return an AgentPortrayalStyle instance instead.",
DeprecationWarning,
PendingDeprecationWarning,
stacklevel=2,
)
dict_data = portray_input.copy()
Expand Down Expand Up @@ -289,7 +289,7 @@ def style_callable(layer_object: Any):

warnings.warn(
"The propertylayer_portrayal dict is deprecated. Use a callable that returns PropertyLayerStyle instead.",
DeprecationWarning,
PendingDeprecationWarning,
stacklevel=2,
)

Expand Down