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

Method test_inplace_math_basics

xarray/tests/test_dataarray.py:2562–2571  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2560 assert len(result["dim_0"]) == 0
2561
2562 def test_inplace_math_basics(self) -> None:
2563 x = self.x
2564 a = self.dv
2565 v = a.variable
2566 b = a
2567 b += 1
2568 assert b is a
2569 assert b.variable is v
2570 assert_array_equal(b.values, x)
2571 assert source_ndarray(b.values) is x
2572
2573 def test_inplace_math_error(self) -> None:
2574 data = np.random.rand(4)

Callers

nothing calls this directly

Calls 1

source_ndarrayFunction · 0.90

Tested by

no test coverage detected