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

Method test_drop_encoding

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

Source from the content-addressed store, hash-verified

3042
3043 @requires_netcdf
3044 def test_drop_encoding(self):
3045 with open_example_dataset("example_1.nc") as ds:
3046 encodings = {v: {**ds[v].encoding} for v in ds.data_vars}
3047 with self.create_zarr_target() as store:
3048 ds.to_zarr(store, encoding=encodings)
3049
3050 def test_hidden_zarr_keys(self) -> None:
3051 skip_if_zarr_format_3("This test is unnecessary; no hidden Zarr keys")

Callers

nothing calls this directly

Calls 3

create_zarr_targetMethod · 0.95
open_example_datasetFunction · 0.85
to_zarrMethod · 0.45

Tested by

no test coverage detected