()
| 2470 | |
| 2471 | |
| 2472 | def test_polyval_degree_dim_checks() -> None: |
| 2473 | x = xr.DataArray([1, 2, 3], dims="x") |
| 2474 | coeffs = xr.DataArray([2, 3, 4], dims="degree", coords={"degree": [0, 1, 2]}) |
| 2475 | with pytest.raises(ValueError): |
| 2476 | xr.polyval(x, coeffs.drop_vars("degree")) |
| 2477 | with pytest.raises(ValueError): |
| 2478 | xr.polyval(x, coeffs.assign_coords(degree=coeffs.degree.astype(float))) |
| 2479 | |
| 2480 | |
| 2481 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…