Skip to content

Commit

Permalink
Tentative fix for issue 32 (reverse the primitive args list prior to …
Browse files Browse the repository at this point in the history
…inserting it in the deque in PrimitiveTree.from_string()

--HG--
extra : source : a1a147c7260ee704b7b337e445f5fc8967b94542
  • Loading branch information
mgard authored and marc_andre committed Mar 26, 2014
1 parent cc0a324 commit 942b68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deap/gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def from_string(cls, string, pset):

expr.append(primitive)
if isinstance(primitive, Primitive):
ret_types.extendleft(primitive.args)
ret_types.extendleft(reversed(primitive.args))
else:
try:
token = eval(token)
Expand Down

0 comments on commit 942b68a

Please sign in to comment.