()
| 223 | |
| 224 | |
| 225 | def test_weighted_quantile_zero_weights(): |
| 226 | da = DataArray([0, 1, 2, 3]) |
| 227 | weights = DataArray([1, 0, 1, 0]) |
| 228 | q = 0.75 |
| 229 | |
| 230 | result = da.weighted(weights).quantile(q) |
| 231 | expected = DataArray([0, 2]).quantile(0.75) |
| 232 | |
| 233 | assert_allclose(expected, result) |
| 234 | |
| 235 | |
| 236 | def test_weighted_quantile_simple(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…