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

Method create_dap4_dataset

xarray/tests/test_backends.py:6663–6670  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

6661 assert_equal(actual, expected)
6662
6663 def create_dap4_dataset(self, **kwargs):
6664 url = "dap4://test.opendap.org/opendap/data/nc/bears.nc"
6665 actual = open_dataset(url, engine="pydap", **kwargs)
6666 with open_example_dataset("bears.nc") as expected:
6667 # workaround to restore string which is converted to byte
6668 # only needed for pydap <3.5.6 https://github.com/pydap/pydap/issues/510
6669 expected["bears"].values = expected["bears"].values.astype("S")
6670 yield actual, expected
6671
6672 def test_session(self) -> None:
6673 from requests import Session

Callers

nothing calls this directly

Calls 3

open_datasetFunction · 0.90
open_example_datasetFunction · 0.85
astypeMethod · 0.45

Tested by

no test coverage detected