Skip to content

Commit 673828a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 79a7b06 commit 673828a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/virus_antibody/agents.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
sys.path.insert(0, os.path.abspath("../../../mesa"))
1414
from mesa.experimental.continuous_space import ContinuousSpaceAgent
1515

16-
class CellularAgent(ContinuousSpaceAgent) :
16+
17+
class CellularAgent(ContinuousSpaceAgent):
1718
def _random_move(self, speed=1):
1819
"""Random walk in a 2D space."""
1920
perturb = np.array(
@@ -215,5 +216,3 @@ def generate_dna(self, dna=None):
215216
elif chance < self.mutation_rate:
216217
dna[idx] = (dna[idx] - 1) % 10
217218
return dna
218-
219-

0 commit comments

Comments
 (0)