()
| 512 | |
| 513 | |
| 514 | def test_weighted_std_bool(): |
| 515 | # https://github.com/pydata/xarray/issues/4074 |
| 516 | da = DataArray([1, 1]) |
| 517 | weights = DataArray([True, True]) |
| 518 | expected = DataArray(0) |
| 519 | |
| 520 | result = da.weighted(weights).std() |
| 521 | |
| 522 | assert_equal(expected, result) |
| 523 | |
| 524 | |
| 525 | def expected_weighted(da, weights, dim, skipna, operation): |
nothing calls this directly
no test coverage detected
searching dependent graphs…