Skip to content

Commit

Permalink
format test_batchrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
vdchess committed Feb 19, 2021
1 parent 32d067c commit 84e85e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_batchrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
from mesa import Agent, Model
from mesa.time import BaseScheduler
from mesa.datacollection import DataCollector
from mesa.batchrunner import BatchRunner, FixedBatchRunner, ParameterProduct, ParameterSampler
from mesa.batchrunner import (
BatchRunner,
FixedBatchRunner,
ParameterProduct,
ParameterSampler,
)


NUM_AGENTS = 7
Expand Down Expand Up @@ -153,7 +158,9 @@ def model_runs(self):
if isinstance(self.variable_params, list):
return len(self.variable_params) * self.iterations
else:
return reduce(mul, map(len, self.variable_params.values())) * self.iterations
return (
reduce(mul, map(len, self.variable_params.values())) * self.iterations
)

def test_model_level_vars(self):
"""
Expand Down

0 comments on commit 84e85e3

Please sign in to comment.