Skip to content

Commit d49f25e

Browse files
committed
small fix and rollback array-api-compat hack
1 parent f11e68f commit d49f25e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scipy/_lib/_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import numpy as np
1313
from scipy._lib._array_api import array_namespace, is_numpy, xp_size
1414
from scipy._lib._docscrape import FunctionDoc, Parameter
15-
from scipy._lib.array_api import is_dask, is_jax
15+
from scipy._lib._array_api import is_dask, is_jax
1616

1717
AxisError: type[Exception]
1818
ComplexWarning: type[Warning]
@@ -127,7 +127,7 @@ def _lazywhere(cond, arrays, f, fillvalue=None, f2=None):
127127
"""
128128
xp = array_namespace(cond, *arrays)
129129

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

0 commit comments

Comments
 (0)