Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/blosc2/lazyexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ def slices_eval_getitem(
def infer_reduction_dtype(dtype, operation):
# It may change in the future, but mostly array-api compliant
my_float = np.result_type(
dtype, np.float32 if dtype == np.float32 or dtype == np.complex64 else blosc2.DEFAULT_FLOAT
dtype, np.float32 if dtype in (np.float32, np.complex64) else blosc2.DEFAULT_FLOAT
)
if operation in {ReduceOp.SUM, ReduceOp.PROD}:
if np.issubdtype(dtype, np.unsignedinteger):
Expand Down
Loading