Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 3 additions & 0 deletions examples/boid-flockers/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from boidflockers.server import server

server.launch()
3 changes: 0 additions & 3 deletions examples/flockers/run.py

This file was deleted.

3 changes: 0 additions & 3 deletions mesa/batchrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def _process_parameters(self, params):
def run_all(self):
""" Run the model at all parameter combinations and store results. """
param_names, param_ranges = zip(*self.variable_parameters.items())
run_count = count()
total_iterations = self.iterations
for param_range in param_ranges:
total_iterations *= len(param_range)
Expand All @@ -138,7 +137,6 @@ def run_all(self):
self.agent_vars[agent_key] = reports
pbar.update()


def _run_single_model(self, param_values, run_count, kwargs):
"""
Run a single model for one parameter combination and one iteration,
Expand All @@ -161,7 +159,6 @@ def _run_single_model(self, param_values, run_count, kwargs):

return (getattr(self, "model_vars", None), getattr(self, "agent_vars", None))


def run_model(self, model):
""" Run a model object to completion, or until reaching max steps.

Expand Down