From 864ca5b4968e43677ca1d5f64b9d235a1d46906e Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 7 Jul 2024 18:53:05 -0700 Subject: [PATCH] Use numpy 2.0-compat `np.complex64` dtype in test --- xarray/tests/test_computation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index 4b9b95b27bb..b000de311af 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -2602,7 +2602,7 @@ def test_cross(a, b, ae, be, dim: str, axis: int, use_dask: bool) -> None: @pytest.mark.parametrize("compute_backend", ["numbagg"], indirect=True) def test_complex_number_reduce(compute_backend): - da = xr.DataArray(np.ones((2,), dtype=np.complex_), dims=["x"]) + da = xr.DataArray(np.ones((2,), dtype=np.complex64), dims=["x"]) # Check that xarray doesn't call into numbagg, which doesn't compile for complex # numbers at the moment (but will when numba supports dynamic compilation) da.min()