(obj)
| 1351 | |
| 1352 | @pytest.mark.parametrize("obj", [make_da(), make_ds()]) |
| 1353 | def 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 | |
| 1361 | def test_map_blocks_to_dataarray(map_ds): |
nothing calls this directly
no test coverage detected
searching dependent graphs…