blosc2.NDArray.blocksize#
- property NDArray.blocksize: int#
The block size (in bytes) for this container.
This is a shortcut to
SChunk.blocksize
and can be accessed through theschunk
attribute as well.See also
Examples
>>> import blosc2 >>> import numpy as np >>> array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) >>> ndarray = blosc2.asarray(array) >>> print("Block size:", ndarray.blocksize) Block size: 80