()
| 421 | |
| 422 | @requires_dask |
| 423 | def test_apply_dask_parallelized_two_outputs() -> None: |
| 424 | data_array = xr.DataArray([[0, 1, 2], [1, 2, 3]], dims=("x", "y")) |
| 425 | |
| 426 | def twice(obj): |
| 427 | def func(x): |
| 428 | return (x, x) |
| 429 | |
| 430 | return apply_ufunc(func, obj, output_core_dims=[[], []], dask="parallelized") |
| 431 | |
| 432 | out0, out1 = twice(data_array.chunk({"x": 1})) |
| 433 | assert_identical(data_array, out0) |
| 434 | assert_identical(data_array, out1) |
| 435 | |
| 436 | |
| 437 | def test_apply_input_core_dimension() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…