Helpers¶
-
bulkmodel.helpers.
get_chunks
(l, n, max_chunks=None)¶ Returns a chunked version of list l with a maximum of n items in each chunk
Parameters: - l (iterable[T]) – list of items of type T
- n (int) – max size of each chunk
- max_chunks (int) – maximum number of chunks that can be returned. Pass none (the default) for unbounded
Returns: list of chunks
Return type: list[T]