()
| 457 | |
| 458 | |
| 459 | def test_weighted_var_bool(): |
| 460 | # https://github.com/pydata/xarray/issues/4074 |
| 461 | da = DataArray([1, 1]) |
| 462 | weights = DataArray([True, True]) |
| 463 | expected = DataArray(0) |
| 464 | |
| 465 | result = da.weighted(weights).var() |
| 466 | |
| 467 | assert_equal(expected, result) |
| 468 | |
| 469 | |
| 470 | @pytest.mark.filterwarnings("error") |
nothing calls this directly
no test coverage detected
searching dependent graphs…