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

Function test_multiple_dims

xarray/tests/test_duck_array_ops.py:923–930  ·  view source on GitHub ↗
(dtype, dask, skipna, func)

Source from the content-addressed store, hash-verified

921@pytest.mark.parametrize("skipna", [False, True])
922@pytest.mark.parametrize("func", ["sum", "prod"])
923def test_multiple_dims(dtype, dask, skipna, func):
924 if dask and not has_dask:
925 pytest.skip("requires dask")
926 da = construct_dataarray(3, dtype, contains_nan=True, dask=dask)
927
928 actual = getattr(da, func)(("x", "y"), skipna=skipna)
929 expected = getattr(getattr(da, func)("x", skipna=skipna), func)("y", skipna=skipna)
930 assert_allclose(actual, expected)
931
932
933@pytest.mark.parametrize("dask", [True, False])

Callers

nothing calls this directly

Calls 2

assert_allcloseFunction · 0.90
construct_dataarrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…