MCPcopy
hub / github.com/pydata/xarray / equals

Method equals

xarray/core/coordinates.py:478–488  ·  view source on GitHub ↗

Two Coordinates objects are equal if they have matching variables, all of which are equal. See Also -------- Coordinates.identical

(self, other: Self)

Source from the content-addressed store, hash-verified

476 del self._data.coords[key]
477
478 def equals(self, other: Self) -> bool:
479 """Two Coordinates objects are equal if they have matching variables,
480 all of which are equal.
481
482 See Also
483 --------
484 Coordinates.identical
485 """
486 if not isinstance(other, Coordinates):
487 return False
488 return self.to_dataset().equals(other.to_dataset())
489
490 def identical(self, other: Self) -> bool:
491 """Like equals, but also checks all variable attributes.

Callers 2

test_equalsMethod · 0.95

Calls 1

to_datasetMethod · 0.95

Tested by 1

test_equalsMethod · 0.76