MCPcopy Index your code
hub / github.com/pydata/xarray / test_weighted_std_nan

Function test_weighted_std_nan

xarray/tests/test_weighted.py:504–511  ·  view source on GitHub ↗
(weights, expected)

Source from the content-addressed store, hash-verified

502 ("weights", "expected"), (([4, 6], 0), ([1, 0], np.nan), ([0, 0], np.nan))
503)
504def test_weighted_std_nan(weights, expected):
505 da = DataArray([np.nan, 2])
506 weights = DataArray(weights)
507 expected = DataArray(expected)
508
509 result = da.weighted(weights).std()
510
511 assert_equal(expected, result)
512
513
514def test_weighted_std_bool():

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…