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

Method test_concat

xarray/tests/test_dask.py:247–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 self.assertLazyAndIdentical(eager_var.count(), lazy_var.count())
246
247 def test_concat(self):
248 u = self.eager_var
249 v = self.lazy_var
250 self.assertLazyAndIdentical(u, Variable.concat([v[:2], v[2:]], "x"))
251 self.assertLazyAndIdentical(u[:2], Variable.concat([v[0], v[1]], "x"))
252 self.assertLazyAndIdentical(u[:2], Variable.concat([u[0], v[1]], "x"))
253 self.assertLazyAndIdentical(u[:2], Variable.concat([v[0], u[1]], "x"))
254 self.assertLazyAndIdentical(
255 u[:3], Variable.concat([v[[0, 2]], v[[1]]], "x", positions=[[0, 2], [1]])
256 )
257
258 def test_missing_methods(self):
259 v = self.lazy_var

Callers

nothing calls this directly

Calls 2

concatMethod · 0.45

Tested by

no test coverage detected