Skip to content

Commit

Permalink
Apply workaround for model_class __new__ not being executed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Mar 7, 2024
1 parent 6816a65 commit 34a1853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesa/experimental/jupyter_viz.py
Expand Up @@ -88,7 +88,8 @@ def JupyterViz(

# 2. Set up Model
def make_model():
model = model_class(**model_parameters, seed=reactive_seed.value)
model = model_class.__new__(model_class, **model_parameters, seed=reactive_seed.value)
model.__init__(**model_parameters)
current_step.value = 0
return model

Expand Down

0 comments on commit 34a1853

Please sign in to comment.