Skip to content

Commit 448da49

Browse files
rhttpike3
authored andcommitted
Apply workaround for model_class __new__ not being executed by default
1 parent 9126a8d commit 448da49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mesa/experimental/jupyter_viz.py

Lines changed: 2 additions & 1 deletion
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)