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

Method test_transpose_0d

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

Source from the content-addressed store, hash-verified

1590 assert_identical(expected_ell, actual)
1591
1592 def test_transpose_0d(self):
1593 for value in [
1594 3.5,
1595 ("a", 1),
1596 np.datetime64("2000-01-01"),
1597 np.timedelta64(1, "h"),
1598 None,
1599 object(),
1600 ]:
1601 variable = Variable([], value)
1602 actual = variable.transpose()
1603 assert_identical(actual, variable)
1604
1605 def test_pandas_categorical_dtype(self):
1606 data = pd.Categorical(np.arange(10, dtype="int64"))

Callers

nothing calls this directly

Calls 3

transposeMethod · 0.95
VariableClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected