ewoksfluo.resource_utils.job_parameters#

ewoksfluo.resource_utils.job_parameters(narrays, shape, dtype, multiplier=1, chunking_possible=True)[source]#

Return maximum number of parallel jobs and chunk size along the first dimension so that CPU and memory usage stay within available limits.

Parameters:
  • narrays (int)

  • shape (Tuple[int, ...])

  • dtype (Union[dtype[Any], None, type[Any], _SupportsDType[dtype[Any]], str, tuple[Any, int], tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], list[Any], _DTypeDict, tuple[Any, Any]])

  • multiplier (int)

  • chunking_possible (bool)

Return type:

Tuple[int, int]