Update generator.py

This commit is contained in:
MoonGem 2018-03-26 20:39:40 -05:00 committed by GitHub
parent 6008449a4b
commit 9034a8e090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,11 @@ def backtesting(ind):
if len(sys.argv) > 1:
ncpus = int(sys.argv[1])
# Creates jobserver with ncpus workers
job_server = pp.Server(ncpus, ppservers=ppservers, restart=True)
# Creates jobserver with ncpus workers restart=True is not needed
job_server = pp.Server(ncpus, ppservers=ppservers)
else:
# Creates jobserver with automatically detected number of workers
job_server = pp.Server(ppservers=ppservers, restart=True)
job_server = pp.Server(ppservers=ppservers)
print("Starting pp with", job_server.get_ncpus(), "workers")