ewoksfluo.resource_utils.array_block_size#

ewoksfluo.resource_utils.array_block_size(item_shape, dtype, max_workers, multiplier=1)[source]#

Number of items that can be processing in parallel while staying within the memory limits.

Parameters:
  • item_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]])

  • max_workers (int)

  • multiplier (int)

Return type:

int