python-blosc2 icon indicating copy to clipboard operation
python-blosc2 copied to clipboard

Mismatched behaviour for SimpleProxy

Open lshaw8317 opened this issue 4 months ago • 0 comments

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.

lshaw8317 avatar Nov 04 '25 08:11 lshaw8317