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

Method _merge_raw

xarray/core/coordinates.py:511–521  ·  view source on GitHub ↗

For use with binary arithmetic.

(self, other, reflexive, compat: CompatOptions | CombineKwargDefault)

Source from the content-addressed store, hash-verified

509 self._data.coords._drop_coords(coord_names)
510
511 def _merge_raw(self, other, reflexive, compat: CompatOptions | CombineKwargDefault):
512 """For use with binary arithmetic."""
513 if other is None:
514 variables = dict(self.variables)
515 indexes = dict(self.xindexes)
516 else:
517 coord_list = [self, other] if not reflexive else [other, self]
518 variables, indexes = merge_coordinates_without_align(
519 coord_list, compat=compat
520 )
521 return variables, indexes
522
523 @contextmanager
524 def _merge_inplace(self, other, compat: CompatOptions | CombineKwargDefault):

Callers 1

_binary_opMethod · 0.80

Calls 1

Tested by

no test coverage detected