Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 21, 2024
1 parent a9d8a6a commit 8f1d86d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/sugarscape_cg/sugarscape_cg/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ def step(self):

def run_model(self, step_count=200):
if self.verbose:
print(f"Initial number Sugarscape Agents: {len(self.agents_by_type[SsAgent])}")
print(
f"Initial number Sugarscape Agents: {len(self.agents_by_type[SsAgent])}"
)

for i in range(step_count):
self.step()

if self.verbose:
print(f"\nFinal number Sugarscape Agents: {len(self.agents_by_type[SsAgent])}")
print(
f"\nFinal number Sugarscape Agents: {len(self.agents_by_type[SsAgent])}"
)

0 comments on commit 8f1d86d

Please sign in to comment.