Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[please review the Contribution Guidelines prior to submitting your pull request. go ahead and delete this line if you've already reviewed said guidelines.]
What does this PR do?
I believe this addresses the cause of the issue described in #1313 and #1308.
The issue in in line 134 and 137 of gp_deap.py
Original
bugged
fixed
In commit 9e6ad7e line 134 was changed to rename ind1 to ind1_cx.
However the following line was not changed to rename ind1 to ind1_cx. So rather than deleting the values for the new individual, it was deleting the scores for the old individual. likely triggering the error identified by @Lingepumpe in #1308
How should this PR be tested?
I used the following code to reproduce the behavior. It doesn't happen all of the time, needs to be rerun a few times to recreate the problem. The issue does not seem to happen with the fixed version.
What are the relevant issues?
#1313 #1308