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

Method test_to_dataset_roundtrip

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

Source from the content-addressed store, hash-verified

626 self.assertLazyAndAllClose(expected, actual)
627
628 def test_to_dataset_roundtrip(self):
629 u = self.eager_array
630 v = self.lazy_array
631
632 expected = u.assign_coords(x=u["x"])
633 self.assertLazyAndEqual(expected, v.to_dataset("x").to_dataarray("x"))
634
635 def test_merge(self):
636 def duplicate_and_merge(array):

Callers

nothing calls this directly

Calls 4

assertLazyAndEqualMethod · 0.95
assign_coordsMethod · 0.45
to_dataarrayMethod · 0.45
to_datasetMethod · 0.45

Tested by

no test coverage detected