Skip to content

Commit

Permalink
fix error for issues_437
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusWG committed Jul 17, 2019
1 parent c4b4eab commit b635dfc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/source/intro/optimizing_parameters.rst
Expand Up @@ -89,9 +89,10 @@
run(config)
with concurrent.futures.ProcessPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
for task in tasks:
executor.submit(run_bt, task)
if __name__ == '__main__':
with concurrent.futures.ProcessPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
for task in tasks:
executor.submit(run_bt, task)
Expand Down Expand Up @@ -129,9 +130,10 @@
os.system(cmd)
with concurrent.futures.ProcessPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
for task in tasks:
executor.submit(run_bt, task)
if __name__ == '__main__':
with concurrent.futures.ProcessPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
for task in tasks:
executor.submit(run_bt, task)
Expand Down

0 comments on commit b635dfc

Please sign in to comment.