(map_da)
| 1337 | |
| 1338 | |
| 1339 | def test_map_blocks_change_name(map_da): |
| 1340 | def change_name(obj): |
| 1341 | obj = obj.copy(deep=True) |
| 1342 | obj.name = "new" |
| 1343 | return obj |
| 1344 | |
| 1345 | expected = change_name(map_da) |
| 1346 | with raise_if_dask_computes(): |
| 1347 | actual = xr.map_blocks(change_name, map_da) |
| 1348 | |
| 1349 | assert_identical(actual, expected) |
| 1350 | |
| 1351 | |
| 1352 | @pytest.mark.parametrize("obj", [make_da(), make_ds()]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…