Update generator.py

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

View File

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