Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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
2 changes: 1 addition & 1 deletion mesa/visualization/mpl_space_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def draw_space(
Returns the Axes object with the plot drawn onto it.
``agent_portrayal`` is called with an agent and should return a AgentPortrayalStyle. Valid fields in this object are "color",
"size", "marker", "zorder", alpha, linewidths, and edgecolors. Other field are ignored and will result in a user warning.
"size", "marker", "zorder", "alpha", "linewidths", and "edgecolors". Other field are ignored and will result in a user warning.
"""
if ax is None:
Expand Down
7 changes: 1 addition & 6 deletions tests/test_components_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@


def agent_portrayal(agent):
"""Simple portrayal of an agent.

Args:
agent (Agent): The agent to portray

"""
"""Return a simple AgentPortrayalStyle for testing matplotlib drawing."""
return AgentPortrayalStyle(
size=10,
color="tab:blue",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_devs.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ def test_simulator_time_deprecation():
model = Model()
simulator.setup(model)

with pytest.warns(DeprecationWarning, match="simulator.time is deprecated"):
# The runtime now emits a FutureWarning for this deprecation.
# Update test to match the current warning type.
with pytest.warns(FutureWarning, match="simulator.time is deprecated"):
Copy link
Member

@EwoutH EwoutH Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. This was a bit time pressing however, so I already fixed it in #2922.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay! Since the fix is handled, I’ll update my branch accordingly and focus this PR only on the agent portrayal changes.
Let me know if anything else needs adjustment!

_ = simulator.time


Expand Down