from deap import base, creator, tools, algorithms...from scoop import futures
...
creator.create("FitnessMax", base.Fitness, weights=(1.0,))creator.create("Individual", list, fitness=creator.FitnessMax)
...
def main(argv):
...
toolbox.register("map", futures.map)
...
if __name__ == '__main__': main(sys.argv[1:])
Traceback (most recent call last): File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 302, in <module> b.main() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 92, in main self.run() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 290, in run futures_startup() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 271, in futures_startup run_name="__main__" File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/futures.py", line 64, in _startup result = _controller.switch(rootFuture, *args, **kargs) File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/_control.py", line 253, in runController raise future.exceptionValueIndexError: string index out of range
--
You received this message because you are subscribed to the Google Groups "deap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deap-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
toolbox.register("deap_aaSeq", G_aaSeq)
toolbox.register("evaluate", evaluateTotalMoment, deap_aaSeq=toolbox.deap_aaSeq)
def evaluateTotalMoment(individual, deap_aaSeq):
structure = buildNewPeptide(individual, deap_aaSeq)
...
Traceback (most recent call last): File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 302, in <module> b.main() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 92, in main self.run() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 290, in run futures_startup() File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/bootstrap/__main__.py", line 271, in futures_startup run_name="__main__" File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/futures.py", line 64, in _startup result = _controller.switch(rootFuture, *args, **kargs) File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scoop/_control.py", line 253, in runController raise future.exceptionValue
TypeError: the first argument must be callable
Traceback (most recent call last):
File "/Users/gvdb/Dropbox/Public/BIOC7009/project/amp-hmv/evolvePeptide.py", line 740, in <module> main(sys.argv[1:]) File "/Users/gvdb/Dropbox/Public/BIOC7009/project/amp-hmv/evolvePeptide.py", line 679, in main toolbox.register("deap_aaSeq", G_aaSeq) File "/Users/gvdb/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/deap/base.py", line 76, in register pfunc = partial(function, *args, **kargs)
TypeError: the first argument must be callable
toolbox.register("evaluate", evaluateTotalMoment, deap_aaSeq=G_aaSeq)
def evaluateTotalMoment(individual, deap_aaSeq):
structure = buildNewPeptide(individual, deap_aaSeq)
...