Skip to content

Commit

Permalink
Use numpy 2.0-compat np.complex64 dtype in test (#9217)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Jul 8, 2024
1 parent 04b38a0 commit bac01c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit bac01c0

Please sign in to comment.