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

Function test_map_blocks_to_dataarray

xarray/tests/test_dask.py:1361–1366  ·  view source on GitHub ↗
(map_ds)

Source from the content-addressed store, hash-verified

1359
1360
1361def test_map_blocks_to_dataarray(map_ds):
1362 with raise_if_dask_computes():
1363 actual = xr.map_blocks(lambda x: x.to_dataarray(), map_ds)
1364
1365 # to_dataarray does not preserve name, so cannot use assert_identical
1366 assert_equal(actual, map_ds.to_dataarray())
1367
1368
1369@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

raise_if_dask_computesFunction · 0.90
assert_equalFunction · 0.90
map_blocksMethod · 0.45
to_dataarrayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…