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

Method test_compatible_to_netcdf

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

Source from the content-addressed store, hash-verified

6626 assert_equal(actual.isel(**indexers2), expected.isel(**indexers2))
6627
6628 def test_compatible_to_netcdf(self) -> None:
6629 # make sure it can be saved as a netcdf
6630 with self.create_datasets() as (actual, expected):
6631 with create_tmp_file() as tmp_file:
6632 actual.to_netcdf(tmp_file)
6633 with open_dataset(tmp_file) as actual2:
6634 assert_equal(actual2, expected)
6635
6636 @requires_dask
6637 def test_dask(self) -> None:

Callers

nothing calls this directly

Calls 5

create_datasetsMethod · 0.95
open_datasetFunction · 0.90
assert_equalFunction · 0.90
create_tmp_fileFunction · 0.85
to_netcdfMethod · 0.45

Tested by

no test coverage detected