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

Method test_shift2d

xarray/tests/test_variable.py:1529–1532  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1527 assert_identical(expected, v.shift(x=1, fill_value=fill_value))
1528
1529 def test_shift2d(self):
1530 v = Variable(("x", "y"), [[1, 2], [3, 4]])
1531 expected = Variable(("x", "y"), [[np.nan, np.nan], [np.nan, 1]])
1532 assert_identical(expected, v.shift(x=1, y=1))
1533
1534 def test_roll(self):
1535 v = Variable("x", [1, 2, 3, 4, 5])

Callers

nothing calls this directly

Calls 3

shiftMethod · 0.95
VariableClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected