sup3r.utilities.utilities.get_chunk_slices
- get_chunk_slices(arr_size, chunk_size, index_slice=slice(None, None, None))[source]
Get array slices of corresponding chunk size
- Parameters:
arr_size (int) – Length of array to slice
chunk_size (int) – Size of slices to split array into
index_slice (slice) – Slice specifying starting and ending index of slice list
- Returns:
list – List of slices corresponding to chunks of array