Skip to content

Commit

Permalink
Update HarmonySearch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jul 6, 2017
1 parent 084884a commit 0b3b867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Solid/HarmonySearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _score_all(self):
:return: None
"""
self.scores = list([self._score(x) for x in self.memory])
self.scores = [self._score(x) for x in self.memory]

def _worst_score(self):
"""
Expand Down Expand Up @@ -139,7 +139,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)

self._score_all()
Expand Down

0 comments on commit 0b3b867

Please sign in to comment.