MCPcopy
hub / github.com/pydata/xarray / add_one

Function add_one

xarray/tests/test_computation.py:263–270  ·  view source on GitHub ↗
(a, core_dims, on_missing_core_dim)

Source from the content-addressed store, hash-verified

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)

Callers 1

test_apply_missing_dimsFunction · 0.85

Calls 1

apply_ufuncFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…