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

Method open_dataset

xarray/tests/test_backends_api.py:124–130  ·  view source on GitHub ↗
(
            self,
            filename_or_obj,
            drop_variables=None,
            **kwargs,
        )

Source from the content-addressed store, hash-verified

122
123 class CustomBackend(xr.backends.BackendEntrypoint):
124 def open_dataset(
125 self,
126 filename_or_obj,
127 drop_variables=None,
128 **kwargs,
129 ) -> xr.Dataset:
130 return expected.copy(deep=True)
131
132 actual = xr.open_dataset("fake_filename", engine=CustomBackend)
133 assert_identical(expected, actual)

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected