Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Nov 6, 2024
1 parent ae76eb6 commit 4ed52aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesa/visualization/solara_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def _check_model_params(init_func, model_params):
model_parameters[name].default == inspect.Parameter.empty
and name not in model_params
and name != "self"
and name != "kwargs"
):
raise ValueError(f"Missing required model parameter: {name}")
for name in model_params:
Expand Down

0 comments on commit 4ed52aa

Please sign in to comment.