Skip to content

Commit

Permalink
Elaborate in __eq__ docstring (#317)
Browse files Browse the repository at this point in the history
* Elaborate in eq docstring

* Fix docstring
  • Loading branch information
rhugonnet authored Sep 21, 2022
1 parent 0af0847 commit 786c7a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geoutils/georaster/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ def __str__(self) -> str:
return self.info()

def __eq__(self, other: object) -> bool:
"""Check if a Raster's data and georeferencing is equal to another."""
"""Check if a Raster masked array's data (including masked values), mask, fill_value and dtype are equal,
as well as the Raster's nodata, and georeferencing."""

if not isinstance(other, type(self)): # TODO: Possibly add equals to SatelliteImage?
return NotImplemented
Expand Down

0 comments on commit 786c7a2

Please sign in to comment.