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

Method test_aggregation

xarray/tests/test_namedarray.py:597–602  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

595 NamedArray(("x", "x"), np.arange(4).reshape(2, 2))
596
597 def test_aggregation(self) -> None:
598 x: NamedArray[Any, np.dtype[np.int64]]
599 x = NamedArray(("x", "y"), np.arange(4).reshape(2, 2))
600
601 result = x.sum()
602 assert isinstance(result.data, np.ndarray)
603
604
605def test_repr() -> None:

Callers

nothing calls this directly

Calls 3

NamedArrayClass · 0.90
arangeMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected