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

Method test_roundtrip_via_memoryview

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

Source from the content-addressed store, hash-verified

2518 engine: T_NetcdfEngine | None
2519
2520 def test_roundtrip_via_memoryview(self) -> None:
2521 original = create_test_data()
2522 result = original.to_netcdf(engine=self.engine)
2523 roundtrip = load_dataset(result, engine=self.engine)
2524 assert_identical(roundtrip, original)
2525
2526 def test_roundtrip_via_bytes(self) -> None:
2527 original = create_test_data()

Callers

nothing calls this directly

Calls 4

load_datasetFunction · 0.90
assert_identicalFunction · 0.90
create_test_dataFunction · 0.85
to_netcdfMethod · 0.45

Tested by

no test coverage detected