From f309e37cdebe7e014204e131d495e1b069d75035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Aguirre=20Dorelo?= Date: Mon, 29 Jun 2015 01:47:24 -0300 Subject: [PATCH] the brother child needs only the mother's genetic material from the cut point until the end --- pyevolve/Crossovers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyevolve/Crossovers.py b/pyevolve/Crossovers.py index 7584a00..addd8ef 100644 --- a/pyevolve/Crossovers.py +++ b/pyevolve/Crossovers.py @@ -444,7 +444,7 @@ def G2DListCrossoverSingleHPoint(genome, **args): if args["count"] == 2: brother = gDad.clone() brother.resetStats() - for i in xrange(brother.getHeight()): + for i in xrange(cut, brother.getHeight()): brother[i][:] = gMom[i][:] return (sister, brother)