(self, f, *args, **kwargs)
| 2432 | return Variable(self.dims, obj) |
| 2433 | |
| 2434 | def _unary_op(self, f, *args, **kwargs): |
| 2435 | keep_attrs = kwargs.pop("keep_attrs", None) |
| 2436 | if keep_attrs is None: |
| 2437 | keep_attrs = _get_keep_attrs(default=True) |
| 2438 | with np.errstate(all="ignore"): |
| 2439 | result = self.__array_wrap__(f(self.data, *args, **kwargs)) |
| 2440 | if keep_attrs: |
| 2441 | result.attrs = self.attrs |
| 2442 | return result |
| 2443 | |
| 2444 | def _binary_op(self, other, f, reflexive=False): |
| 2445 | if isinstance(other, xr.DataTree | xr.DataArray | xr.Dataset): |
nothing calls this directly
no test coverage detected