Skip to content

Commit

Permalink
Merge pull request DEAP#344 from bejer/fix_infinite_recursion_in_cxES…
Browse files Browse the repository at this point in the history
…TwoPoints

Make cxESTwoPoints call cxESTwoPoint instead of itself.
  • Loading branch information
fmder authored Apr 22, 2019
2 parents 9ce14ad + 2dfc058 commit e1a52b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deap/tools/crossover.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def cxESTwoPoints(ind1, ind2):
.. deprecated:: 1.0
The function has been renamed. Use :func:`cxESTwoPoint` instead.
"""
return cxESTwoPoints(ind1, ind2)
return cxESTwoPoint(ind1, ind2)

# List of exported function names.
__all__ = ['cxOnePoint', 'cxTwoPoint', 'cxUniform', 'cxPartialyMatched',
Expand Down

0 comments on commit e1a52b2

Please sign in to comment.