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

Method equals

xarray/tests/test_coordinate_transform.py:35–40  ·  view source on GitHub ↗
(
        self, other: CoordinateTransform, exclude: frozenset[Hashable] | None = None
    )

Source from the content-addressed store, hash-verified

33 return {dim: coord_labels[dim] / self.scale for dim in self.xy_dims}
34
35 def equals(
36 self, other: CoordinateTransform, exclude: frozenset[Hashable] | None = None
37 ) -> bool:
38 if not isinstance(other, SimpleCoordinateTransform):
39 return False
40 return self.scale == other.scale
41
42 def __repr__(self) -> str:
43 return f"Scale({self.scale})"

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected