()
| 274 | |
| 275 | |
| 276 | def test_ds_groupby_map_func_args() -> None: |
| 277 | def func(arg1, arg2, arg3=0): |
| 278 | return arg1 + arg2 + arg3 |
| 279 | |
| 280 | dataset = xr.Dataset({"foo": ("x", [1, 1, 1])}, {"x": [1, 2, 3]}) |
| 281 | expected = xr.Dataset({"foo": ("x", [3, 3, 3])}, {"x": [1, 2, 3]}) |
| 282 | actual = dataset.groupby("x").map(func, args=(1,), arg3=1) |
| 283 | assert_identical(expected, actual) |
| 284 | |
| 285 | |
| 286 | def test_da_groupby_empty() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…