Skip to content

Commit caffe6f

Browse files
committed
Fix ufunc position
1 parent 15bec37 commit caffe6f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/blosc2/ndarray.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,6 @@
112112
np.round: "round",
113113
}
114114

115-
# implemented in python-blosc2
116-
local_ufunc_map = {
117-
np.logaddexp: blosc2.logaddexp,
118-
np.logical_not: blosc2.logical_not,
119-
np.logical_and: blosc2.logical_and,
120-
np.logical_or: blosc2.logical_or,
121-
np.logical_xor: blosc2.logical_xor,
122-
}
123-
124115

125116
@runtime_checkable
126117
class Array(Protocol):
@@ -3012,6 +3003,16 @@ def chunkwise_logaddexp(inputs, output, offset):
30123003
return blosc2.lazyudf(chunkwise_logaddexp, (x1, x2), dtype=dtype, shape=x1.shape)
30133004

30143005

3006+
# implemented in python-blosc2
3007+
local_ufunc_map = {
3008+
np.logaddexp: logaddexp,
3009+
np.logical_not: logical_not,
3010+
np.logical_and: logical_and,
3011+
np.logical_or: logical_or,
3012+
np.logical_xor: logical_xor,
3013+
}
3014+
3015+
30153016
class Operand:
30163017
"""Base class for all operands in expressions."""
30173018

0 commit comments

Comments
 (0)