Skip to content

Commit

Permalink
Merge pull request #85 from PSLmodels/set_client_workers
Browse files Browse the repository at this point in the history
Set n_workers for dask LocalCluster
  • Loading branch information
jdebacker authored Feb 6, 2024
2 parents c0802c6 + 6843966 commit 1982230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run_og_usa.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

def main():
# Define parameters to use for multiprocessing
client = Client()
num_workers = min(multiprocessing.cpu_count(), 7)
client = Client(n_workers=num_workers)
print("Number of workers = ", num_workers)

# Directories to save data
Expand Down

0 comments on commit 1982230

Please sign in to comment.