Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ test_where
Function
test_where
xarray/tests/test_cupy.py:55–62 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
54
55
def
test_where() -> None:
56
from
xarray.core.duck_array_ops
import
where
57
58
data = cp.zeros(10)
59
60
output = where(data < 1, 1, data).all()
61
assert output
62
assert isinstance(output, cp.ndarray)
Callers
nothing calls this directly
Calls
2
where
Function · 0.90
all
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…