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

Method _binary_op

xarray/core/datatree.py:1945–1957  ·  view source on GitHub ↗
(self, other, f, reflexive=False, join=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

map_over_datasetsFunction · 0.90

Tested by

no test coverage detected