Skip to content

Commit

Permalink
cli/data: properly set Dask workers with CLI opt
Browse files Browse the repository at this point in the history
  • Loading branch information
raehik committed Dec 13, 2023
1 parent 1d26dee commit 8e27ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gz21_ocean_momentum/cli/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
logger = logging.getLogger(__name__)

if options.dask_workers is not None:
dask.config.set(num_workers=1)
dask.config.set(num_workers=options.dask_workers)

cli.fail_if_path_is_nonempty_dir(
1, f"--out-dir \"{options.out_dir}\" invalid", options.out_dir)
Expand Down

0 comments on commit 8e27ebc

Please sign in to comment.