Skip to content

Commit

Permalink
examples: Add required components keyword (projectmesa#2485)
Browse files Browse the repository at this point in the history
SolaraViz now requires components to be a keyword argument, this adds it to the two example that didn't have that.
  • Loading branch information
EwoutH authored Nov 11, 2024
1 parent 99905d1 commit 544b735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mesa/examples/basic/boid_flockers/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def boid_draw(agent):

page = SolaraViz(
model,
[make_space_component(agent_portrayal=boid_draw, backend="matplotlib")],
components=[make_space_component(agent_portrayal=boid_draw, backend="matplotlib")],
model_params=model_params,
name="Boid Flocking Model",
)
Expand Down
2 changes: 1 addition & 1 deletion mesa/examples/basic/virus_on_network/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def post_process_lineplot(ax):

page = SolaraViz(
model1,
[
components=[
SpacePlot,
StatePlot,
get_resistant_susceptible_ratio,
Expand Down

0 comments on commit 544b735

Please sign in to comment.