Skip to content

Commit

Permalink
print_function
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 28, 2017
1 parent 61eeab0 commit ac510d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Solid/HarmonySearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def run(self, verbose=True):
self.cur_steps += 1

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

self._score_all()

Expand All @@ -161,7 +161,7 @@ def run(self, verbose=True):
self.best = self.memory[self._best_score()]

if self.max_score is not None and self._score(self.best) > self.max_score:
print "TERMINATING - REACHED MAXIMUM SCORE"
print("TERMINATING - REACHED MAXIMUM SCORE"
return self.best, self._score(self.best)
print "TERMINATING - REACHED MAXIMUM STEPS"
return self.best, self._score(self.best)
print("TERMINATING - REACHED MAXIMUM STEPS")
return self.best, self._score(self.best)

0 comments on commit ac510d3

Please sign in to comment.