Skip to content

Commit bac01c0

Browse files
authored
Use numpy 2.0-compat np.complex64 dtype in test (#9217)
1 parent 04b38a0 commit bac01c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_computation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@ def test_cross(a, b, ae, be, dim: str, axis: int, use_dask: bool) -> None:
26022602

26032603
@pytest.mark.parametrize("compute_backend", ["numbagg"], indirect=True)
26042604
def test_complex_number_reduce(compute_backend):
2605-
da = xr.DataArray(np.ones((2,), dtype=np.complex_), dims=["x"])
2605+
da = xr.DataArray(np.ones((2,), dtype=np.complex64), dims=["x"])
26062606
# Check that xarray doesn't call into numbagg, which doesn't compile for complex
26072607
# numbers at the moment (but will when numba supports dynamic compilation)
26082608
da.min()

0 commit comments

Comments
 (0)