Skip to content

Commit

Permalink
Remove print() statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Jun 24, 2023
1 parent d3b9ec0 commit 8a6970a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pygad/pygad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,6 @@ def cal_pop_fitness(self):
# Make sure that both the solution and 'self.solutions' are of type 'list' not 'numpy.ndarray'.
# if (self.save_solutions) and (len(self.solutions) > 0) and (numpy.any(numpy.all(self.solutions == numpy.array(sol), axis=1)))
# if (self.save_solutions) and (len(self.solutions) > 0) and (numpy.any(numpy.all(numpy.equal(self.solutions, numpy.array(sol)), axis=1)))
# print("BBBBBB", len(self.best_solutions))
if (self.save_solutions) and (len(self.solutions) > 0) and (list(sol) in self.solutions):
solution_idx = self.solutions.index(list(sol))
fitness = self.solutions_fitness[solution_idx]
Expand Down

0 comments on commit 8a6970a

Please sign in to comment.