Skip to content
Snippets Groups Projects
Commit eab1b1b7 authored by Manuel Guenther's avatar Manuel Guenther
Browse files

Beuatified code

parent 7717742f
Branches
Tags v2.0.3
1 merge request!77Resolve "local-parallel queue is not setup well"
Pipeline #56726 passed
...@@ -67,11 +67,13 @@ def dask_get_partition_size(cluster, n_objects, lower_bound=200): ...@@ -67,11 +67,13 @@ def dask_get_partition_size(cluster, n_objects, lower_bound=200):
else n_objects else n_objects
) )
def get_local_parallel_client(parallel=None, processes=True): def get_local_parallel_client(parallel=None, processes=True):
"""Returns a local Dask client with the given parameters, see the dask documentation for details: https://docs.dask.org/en/latest/how-to/deploy-dask/single-distributed.html?highlight=localcluster#localcluster """Returns a local Dask client with the given parameters, see the dask documentation for details: https://docs.dask.org/en/latest/how-to/deploy-dask/single-distributed.html?highlight=localcluster#localcluster
Parameters Parameters
---------- ----------
parallel: int or None parallel: int or None
The number of workers (processes or threads) to use; if `None`, take as many processors as we have on the system The number of workers (processes or threads) to use; if `None`, take as many processors as we have on the system
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment