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

Function test_map_blocks_kwargs

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

Source from the content-addressed store, hash-verified

1351
1352@pytest.mark.parametrize("obj", [make_da(), make_ds()])
1353def test_map_blocks_kwargs(obj):
1354 expected = xr.full_like(obj, fill_value=np.nan)
1355 with raise_if_dask_computes():
1356 actual = xr.map_blocks(xr.full_like, obj, kwargs=dict(fill_value=np.nan))
1357 assert_chunks_equal(expected.chunk(), actual)
1358 assert_identical(actual, expected)
1359
1360
1361def test_map_blocks_to_dataarray(map_ds):

Callers

nothing calls this directly

Calls 5

raise_if_dask_computesFunction · 0.90
assert_chunks_equalFunction · 0.90
assert_identicalFunction · 0.90
map_blocksMethod · 0.45
chunkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…