martaiborra
martaiborra
When using a ZFP, it must be kept in mind that for this to work properly the block size must be 4, 4x4, 4x4x4 and 4x4x4x4 items for 1, 2,...
The `blosc2.NDArray.__getitem__` method uses ndindex, which consumes a lot of time. This `__getitem__` is used for each block and each blosc2.NDArray operand in a LazyUDF computed with prefilters or postfiters....
The next example should work. ``` import blosc2 shape = (0, 0) # Create an array a = blosc2.zeros(shape, chunks=(10, 10), blocks=(5,5)) a.resize((5,5)) # Get slice as a NumPy array...