diff --git a/examples/howto/plot_batch_simulate.py b/examples/howto/plot_batch_simulate.py index b26e399ab..f78a18e51 100644 --- a/examples/howto/plot_batch_simulate.py +++ b/examples/howto/plot_batch_simulate.py @@ -99,7 +99,8 @@ def summary_func(results): # Run the batch simulation and collect the results. -batch_simulation = BatchSimulate(net=jones_2009_model(mesh_shape=(3, 3)), +net = jones_2009_model(mesh_shape=(3, 3)) +batch_simulation = BatchSimulate(net=net, set_params=set_params, summary_func=summary_func) simulation_results = batch_simulation.run(param_grid,