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

Method test_roundtrip_example_1_netcdf

xarray/tests/test_backends.py:817–824  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

815
816 @requires_netcdf
817 def test_roundtrip_example_1_netcdf(self) -> None:
818 with open_example_dataset("example_1.nc") as expected:
819 with self.roundtrip(expected) as actual:
820 # we allow the attributes to differ since that
821 # will depend on the encoding used. For example,
822 # without CF encoding 'actual' will end up with
823 # a dtype attribute.
824 assert_equal(expected, actual)
825
826 def test_roundtrip_coordinates(self) -> None:
827 original = Dataset(

Callers

nothing calls this directly

Calls 3

roundtripMethod · 0.95
assert_equalFunction · 0.90
open_example_datasetFunction · 0.85

Tested by

no test coverage detected