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

Method test_index_0d_float

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

Source from the content-addressed store, hash-verified

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)]:
202 x = self.cls(["x"], [value])
203 self._assertIndexedLikeNDArray(x, value, dtype)
204
205 def test_index_0d_string(self):
206 value = "foo"

Callers

nothing calls this directly

Calls 2

clsMethod · 0.45

Tested by

no test coverage detected