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

Method test_setitem_dataset_on_this_node

xarray/tests/test_datatree.py:557–561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

555
556 @pytest.mark.xfail(reason="assigning Datasets doesn't yet create new nodes")
557 def test_setitem_dataset_on_this_node(self) -> None:
558 data = xr.Dataset({"temp": [0, 50]})
559 results = DataTree(name="results")
560 results["."] = data
561 assert_identical(results.to_dataset(), data)
562
563 def test_setitem_dataset_as_new_node(self) -> None:
564 data = xr.Dataset({"temp": [0, 50]})

Callers

nothing calls this directly

Calls 3

to_datasetMethod · 0.95
DataTreeClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected