@@ -150,7 +150,7 @@ def _make_model_args(self):
150
150
return total_iterations , all_kwargs , all_param_values
151
151
152
152
def run_all (self ):
153
- """ Run the model at all parameter combinations and store results. """
153
+ """Run the model at all parameter combinations and store results."""
154
154
run_count = count ()
155
155
total_iterations , all_kwargs , all_param_values = self ._make_model_args ()
156
156
@@ -210,15 +210,15 @@ def run_model(self, model):
210
210
return None
211
211
212
212
def collect_model_vars (self , model ):
213
- """ Run reporters and collect model-level variables. """
213
+ """Run reporters and collect model-level variables."""
214
214
model_vars = OrderedDict ()
215
215
for var , reporter in self .model_reporters .items ():
216
216
model_vars [var ] = reporter (model )
217
217
218
218
return model_vars
219
219
220
220
def collect_agent_vars (self , model ):
221
- """ Run reporters and collect agent-level variables. """
221
+ """Run reporters and collect agent-level variables."""
222
222
agent_vars = OrderedDict ()
223
223
for agent in model .schedule ._agents .values ():
224
224
agent_record = OrderedDict ()
@@ -412,7 +412,7 @@ def __init__(
412
412
413
413
414
414
class BatchRunnerMP (BatchRunner ):
415
- """ Child class of BatchRunner, extended with multiprocessing support. """
415
+ """Child class of BatchRunner, extended with multiprocessing support."""
416
416
417
417
def __init__ (self , model_cls , nr_processes = None , ** kwargs ):
418
418
"""Create a new BatchRunnerMP for a given model with the given
0 commit comments