MCPcopy
hub / github.com/pydata/xarray / test_weighted_std_bool

Function test_weighted_std_bool

xarray/tests/test_weighted.py:514–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512
513
514def 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
525def expected_weighted(da, weights, dim, skipna, operation):

Callers

nothing calls this directly

Calls 4

weightedMethod · 0.95
DataArrayClass · 0.90
assert_equalFunction · 0.90
stdMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…