()
| 330 | |
| 331 | |
| 332 | def test_weighted_quantile_bool(): |
| 333 | # https://github.com/pydata/xarray/issues/4074 |
| 334 | da = DataArray([1, 1]) |
| 335 | weights = DataArray([True, True]) |
| 336 | q = 0.5 |
| 337 | |
| 338 | expected = DataArray([1], coords={"quantile": [q]}).squeeze() |
| 339 | result = da.weighted(weights).quantile(q) |
| 340 | |
| 341 | assert_equal(expected, result) |
| 342 | |
| 343 | |
| 344 | @pytest.mark.parametrize("q", (-1, 1.1, (0.5, 1.1), ((0.2, 0.4), (0.6, 0.8)))) |
nothing calls this directly
no test coverage detected
searching dependent graphs…