Skip to content

Commit da9c068

Browse files
lithomas1lucascolley
authored andcommitted
revert lazywhere hack
1 parent 41dbc4b commit da9c068

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scipy/_lib/_util.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ def _lazywhere(cond, arrays, f, fillvalue=None, f2=None):
128128
"""
129129
xp = array_namespace(cond, *arrays)
130130

131-
if is_dask(xp) or is_jax(xp):
132-
# TODO: verify for jax
133-
return xp.where(cond, f(arrays[0], arrays[1]), f2(arrays[0], arrays[1]) if not fillvalue else fillvalue)
134-
135131
if (f2 is fillvalue is None) or (f2 is not None and fillvalue is not None):
136132
raise ValueError("Exactly one of `fillvalue` or `f2` must be given.")
137133

0 commit comments

Comments
 (0)