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

Method test_index_0d_int

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

Source from the content-addressed store, hash-verified

193 assert variable[0].values.dtype == expected_dtype
194
195 def test_index_0d_int(self):
196 for value, dtype in [(0, np.int_), (np.int32(0), np.int32)]:
197 x = self.cls(["x"], [value])
198 self._assertIndexedLikeNDArray(x, value, dtype)
199
200 def test_index_0d_float(self):
201 for value, dtype in [(0.5, float), (np.float32(0.5), np.float32)]:

Callers

nothing calls this directly

Calls 2

clsMethod · 0.45

Tested by

no test coverage detected