Skip to content

Commit

Permalink
Merge pull request #928 from jdebacker/run_script
Browse files Browse the repository at this point in the history
Set threads per worker to 1
  • Loading branch information
jdebacker authored May 10, 2024
2 parents 565fdef + 33b1902 commit 9bf8810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_examples/run_ogcore_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
# Define parameters to use for multiprocessing
num_workers = min(multiprocessing.cpu_count(), 7)
print("Number of workers = ", num_workers)
client = Client(n_workers=num_workers)
client = Client(n_workers=num_workers, threads_per_worker=1)
run_start_time = time.time()

# Directories to save data
Expand Down

0 comments on commit 9bf8810

Please sign in to comment.