(obj, dim)
| 436 | |
| 437 | def test_apply_input_core_dimension() -> None: |
| 438 | def first_element(obj, dim): |
| 439 | def func(x): |
| 440 | return x[..., 0] |
| 441 | |
| 442 | return apply_ufunc(func, obj, input_core_dims=[[dim]]) |
| 443 | |
| 444 | array = np.array([[1, 2], [3, 4]]) |
| 445 | variable = xr.Variable(["x", "y"], array) |
no test coverage detected
searching dependent graphs…