Skip to content

Commit 34a1853

Browse files
committed
Apply workaround for model_class __new__ not being executed by default
1 parent 6816a65 commit 34a1853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mesa/experimental/jupyter_viz.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def JupyterViz(
8888

8989
# 2. Set up Model
9090
def make_model():
91-
model = model_class(**model_parameters, seed=reactive_seed.value)
91+
model = model_class.__new__(model_class, **model_parameters, seed=reactive_seed.value)
92+
model.__init__(**model_parameters)
9293
current_step.value = 0
9394
return model
9495

0 commit comments

Comments
 (0)