(arr)
| 6556 | ) |
| 6557 | |
| 6558 | def func(arr): |
| 6559 | if "y" not in arr.dims: |
| 6560 | return arr |
| 6561 | |
| 6562 | # drop attrs from coords |
| 6563 | return arr.mean(dim="y").drop_attrs() |
| 6564 | |
| 6565 | expected = ds.mean(dim="y", keep_attrs=True) |
| 6566 | actual = ds.map(func, keep_attrs=True) |
no test coverage detected