blosc2.NDArray.info#

property NDArray.info: InfoReporter#

Print information about this array.

Examples

>>> import numpy as np
>>> import blosc2
>>> my_array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
>>> array = blosc2.asarray(my_array)
>>> print(array.info)
type    : NDArray
shape   : (10,)
chunks  : (10,)
blocks  : (10,)
dtype   : int64
cratio  : 0.73
cparams : {'blocksize': 80,
'clevel': 1,
'codec': <Codec.ZSTD: 5>,
'codec_meta': 0,
'filters': [<Filter.NOFILTER: 0>,
        <Filter.NOFILTER: 0>,
        <Filter.NOFILTER: 0>,
        <Filter.NOFILTER: 0>,
        <Filter.NOFILTER: 0>,
        <Filter.SHUFFLE: 1>],
'filters_meta': [0, 0, 0, 0, 0, 0],
'nthreads': 4,
'splitmode': <SplitMode.ALWAYS_SPLIT: 1>,
'typesize': 8,
'use_dict': 0}
dparams : {'nthreads': 4}