python-blosc2
python-blosc2 copied to clipboard
Mismatched behaviour for SimpleProxy
fname_in = "kevlar.h5" # input file with the kevlar dataset
# Re-open the HDF5 arrays
f = h5py.File(fname_in, "r")
mat = f["/entry/data/data"]
# this works
res = blosc2.lazyexpr("where(mat > 10, 10, mat)").compute()
# this does not
res = (blosc2.where(mat > 10, 10, mat)).compute()
mat > 10 tries to evaluate and fails because it does not go through blosc2 - perhaps it is possible to somehow modify blosc2.where so that this doesn't happen.