iblancasa / deap-benchmark

Bechmark to compare with https://github.com/iblancasa/PythonEO
GNU General Public License v3.0
0 stars 1 forks source link

Added default values and changed names #4

Closed JJ closed 8 years ago

JJ commented 8 years ago

But lists does not work

Traceback (most recent call last):
  File "bitflip.py", line 62, in <module>
    main()
  File "bitflip.py", line 58, in main
    print("Python_DEAP_"+sys.argv[1]+"-BitVector, " + str(length) +", "+ str(time_this(toolbox, iterations, chromosome)))
  File "bitflip.py", line 23, in time_this
    toolbox.mutate(chromosome)
  File "bitflip.py", line 15, in bitFlip
    mutie = chromosome.copy()
AttributeError: 'chromosome' object has no attribute 'copy'
iblancasa commented 8 years ago

I don't have the same problem.

What is your Python version? I am using 3.5.1

JJ commented 8 years ago

2.7

JJ commented 8 years ago

OK, it works with python3. Changed README for that.