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

Function add_attrs

xarray/tests/test_dask.py:1321–1325  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1319@pytest.mark.parametrize("obj", [make_da(), make_ds()])
1320def test_map_blocks_add_attrs(obj):
1321 def add_attrs(obj):
1322 obj = obj.copy(deep=True)
1323 obj.attrs["new"] = "new"
1324 obj.cxy.attrs["new2"] = "new2"
1325 return obj
1326
1327 expected = add_attrs(obj)
1328 with raise_if_dask_computes():

Callers 1

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…