(a, core_dims, on_missing_core_dim)
| 261 | ## Single arg |
| 262 | |
| 263 | def add_one(a, core_dims, on_missing_core_dim): |
| 264 | return apply_ufunc( |
| 265 | lambda x: x + 1, |
| 266 | a, |
| 267 | input_core_dims=core_dims, |
| 268 | output_core_dims=core_dims, |
| 269 | on_missing_core_dim=on_missing_core_dim, |
| 270 | ) |
| 271 | |
| 272 | array = np.arange(6).reshape(2, 3) |
| 273 | variable = xr.Variable(["x", "y"], array) |
no test coverage detected
searching dependent graphs…