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

Function sum_add

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

Source from the content-addressed store, hash-verified

299 ## Multiple args
300
301 def sum_add(a, b, core_dims, on_missing_core_dim):
302 return apply_ufunc(
303 lambda a, b, axis=None: a.sum(axis) + b.sum(axis),
304 a,
305 b,
306 input_core_dims=core_dims,
307 on_missing_core_dim=on_missing_core_dim,
308 )
309
310 # Check the standard stuff works OK
311 assert_identical(

Callers 1

test_apply_missing_dimsFunction · 0.85

Calls 2

apply_ufuncFunction · 0.90
sumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…