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

Method test_numpy_matrix

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

Source from the content-addressed store, hash-verified

2910 assert_array_equal(data, actual)
2911
2912 def test_numpy_matrix(self):
2913 with pytest.warns(PendingDeprecationWarning):
2914 data = np.matrix([[1, 2], [3, 4]])
2915 actual: Any = as_compatible_data(data)
2916 assert isinstance(actual, np.ndarray)
2917 assert_array_equal(data, actual)
2918
2919 def test_unsupported_type(self):
2920 # Non indexable type

Callers

nothing calls this directly

Calls 1

as_compatible_dataFunction · 0.90

Tested by

no test coverage detected