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

Function test_map_blocks_hlg_layers

xarray/tests/test_dask.py:1510–1520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1508
1509
1510def test_map_blocks_hlg_layers():
1511 # regression test for #3599
1512 ds = xr.Dataset(
1513 {
1514 "x": (("a",), dask.array.ones(10, chunks=(5,))),
1515 "z": (("b",), dask.array.ones(10, chunks=(5,))),
1516 }
1517 )
1518 mapped = ds.map_blocks(lambda x: x)
1519
1520 xr.testing.assert_equal(mapped, ds)
1521
1522
1523def test_make_meta(map_ds):

Callers

nothing calls this directly

Calls 1

map_blocksMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…