(self, other, f, reflexive=False, join=None)
| 1943 | return self.map_over_datasets(functools.partial(f, **kwargs), *args) |
| 1944 | |
| 1945 | def _binary_op(self, other, f, reflexive=False, join=None) -> DataTree: |
| 1946 | from xarray.core.groupby import GroupBy |
| 1947 | |
| 1948 | if isinstance(other, GroupBy): |
| 1949 | return NotImplemented |
| 1950 | |
| 1951 | ds_binop = functools.partial( |
| 1952 | Dataset._binary_op, |
| 1953 | f=f, |
| 1954 | reflexive=reflexive, |
| 1955 | join=join, |
| 1956 | ) |
| 1957 | return map_over_datasets(ds_binop, self, other) |
| 1958 | |
| 1959 | def _inplace_binary_op(self, other, f) -> Self: |
| 1960 | from xarray.core.groupby import GroupBy |
nothing calls this directly
no test coverage detected