Skip to content

Commit

Permalink
Update ParticleSwarm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jul 6, 2017
1 parent 0b3b867 commit 9cdca33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solid/ParticleSwarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run(self, verbose=True):
for i in range(self.max_steps):
self.cur_steps += 1

if ((i + 1) % 100 == 0) and verbose:
if verbose and ((i + 1) % 100 == 0):
print(self)

u1 = zeros((self.swarm_size, self.swarm_size))
Expand Down

0 comments on commit 9cdca33

Please sign in to comment.