Skip to content

Commit 920a880

Browse files
lithomas1lucascolley
authored andcommitted
small fix and rollback array-api-compat hack
1 parent c12f1a3 commit 920a880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scipy/_lib/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _lazywhere(cond, arrays, f, fillvalue=None, f2=None):
128128
"""
129129
xp = array_namespace(cond, *arrays)
130130

131-
if is_dask_namespace(xp) or is_jax_namespace(xp):
131+
if is_dask(xp) or is_jax(xp):
132132
# TODO: verify for jax
133133
return xp.where(cond, f(arrays[0], arrays[1]), f2(arrays[0], arrays[1]) if not fillvalue else fillvalue)
134134

0 commit comments

Comments
 (0)