MCPcopy Index your code
hub / github.com/pydata/xarray / inject_numpy_same

Function inject_numpy_same

xarray/computation/ops.py:293–297  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

291
292
293def inject_numpy_same(cls):
294 # these methods don't return arrays of the same shape as the input, so
295 # don't try to patch these in for Dataset objects
296 for name in NUMPY_SAME_METHODS:
297 setattr(cls, name, _values_method_wrapper(name))
298
299
300class IncludeReduceMethods:

Callers 1

__init_subclass__Method · 0.85

Calls 1

_values_method_wrapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…