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

Method test_stack_unstack_consistency

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

Source from the content-addressed store, hash-verified

1793 assert_identical(actual, expected)
1794
1795 def test_stack_unstack_consistency(self):
1796 v = Variable(["x", "y"], [[0, 1], [2, 3]])
1797 actual = v.stack(z=("x", "y")).unstack(z={"x": 2, "y": 2})
1798 assert_identical(actual, v)
1799
1800 @pytest.mark.filterwarnings("error::RuntimeWarning")
1801 def test_unstack_without_missing(self):

Callers

nothing calls this directly

Calls 4

stackMethod · 0.95
VariableClass · 0.90
assert_identicalFunction · 0.90
unstackMethod · 0.45

Tested by

no test coverage detected