(obj)
| 1222 | |
| 1223 | @pytest.mark.parametrize("obj", [make_da(), make_ds()]) |
| 1224 | def test_map_blocks(obj): |
| 1225 | def func(obj): |
| 1226 | result = obj + obj.x + 5 * obj.y |
| 1227 | return result |
| 1228 | |
| 1229 | with raise_if_dask_computes(): |
| 1230 | actual = xr.map_blocks(func, obj) |
| 1231 | expected = func(obj) |
| 1232 | assert_chunks_equal(expected.chunk(), actual) |
| 1233 | assert_identical(actual, expected) |
| 1234 | |
| 1235 | |
| 1236 | @pytest.mark.parametrize("obj", [make_da(), make_ds()]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…