MCPcopy
hub / github.com/pydata/xarray / test_init

Method test_init

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

Source from the content-addressed store, hash-verified

2564 return IndexVariable(*args, **kwargs)
2565
2566 def test_init(self):
2567 with pytest.raises(ValueError, match=r"must be 1-dimensional"):
2568 IndexVariable((), 0)
2569
2570 def test_to_index(self):
2571 data = 0.5 * np.arange(10)

Callers

nothing calls this directly

Calls 1

IndexVariableClass · 0.90

Tested by

no test coverage detected