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

Method __array_wrap__

xarray/core/variable.py:2431–2432  ·  view source on GitHub ↗
(self, obj, context=None, return_scalar=False)

Source from the content-addressed store, hash-verified

2429 return self._new(data=self.data.real)
2430
2431 def __array_wrap__(self, obj, context=None, return_scalar=False):
2432 return Variable(self.dims, obj)
2433
2434 def _unary_op(self, f, *args, **kwargs):
2435 keep_attrs = kwargs.pop("keep_attrs", None)

Callers 2

_unary_opMethod · 0.95
maybe_wrap_arrayFunction · 0.45

Calls 1

VariableClass · 0.70

Tested by

no test coverage detected