Skip to content

Commit

Permalink
Error checking for facebookresearch#1461
Browse files Browse the repository at this point in the history
  • Loading branch information
Game4Move78 authored Jul 11, 2022
1 parent fd110f3 commit 6750392
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nevergrad/optimization/differentialevolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def _internal_ask_candidate(self) -> p.Parameter:
self.population[candidate.uid] = candidate
self._uid_queue.asked.add(candidate.uid)
return candidate
# stop queue wrapping around to lineage waiting for a tell
assert self._uid_queue.told
# init is done
lineage = self._uid_queue.ask()
parent = self.population[lineage]
Expand Down

0 comments on commit 6750392

Please sign in to comment.