rex.rechunk_h5.chunk_size.ArrayChunkSize
- class ArrayChunkSize(arr, chunk_size=2)[source]
Bases:
BaseChunkSize
Compute chunks based on array size, array will only be chunked along the 0 axis
- Parameters:
arr (ndarray) – Dataset array
chunk_size (int, optional) – Chunk size in MB, by default 2
Methods
compute
(arr[, chunk_size])Compute chunks based on array size, array will only be chunked along the 0 axis
compute_arr_chunks
(arr[, chunk_size])Compute chunks based on array size, array will only be chunked along the 0 axis
Attributes
Dataset chunk size along all axis
- classmethod compute_arr_chunks(arr, chunk_size=2)[source]
Compute chunks based on array size, array will only be chunked along the 0 axis
- Parameters:
arr (ndarray) – Dataset array
chunk_size (int, optional) – Chunk size in MB, by default 2
- Returns:
chunks (tuple) – Dataset chunk size along all axis
- classmethod compute(arr, chunk_size=2)[source]
Compute chunks based on array size, array will only be chunked along the 0 axis
- Parameters:
arr (ndarray) – Dataset array
chunk_size (int, optional) – Chunk size in MB, by default 2
- Returns:
chunks (tuple) – Dataset chunk size along all axis
- property chunks
Dataset chunk size along all axis
- Returns:
tuple