From 786c7a23e0109aefdd135b41a7df27c8319c4913 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Wed, 21 Sep 2022 11:58:22 +0200 Subject: [PATCH] Elaborate in `__eq__` docstring (#317) * Elaborate in eq docstring * Fix docstring --- geoutils/georaster/raster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geoutils/georaster/raster.py b/geoutils/georaster/raster.py index aab7d4ba..ebac2aa0 100644 --- a/geoutils/georaster/raster.py +++ b/geoutils/georaster/raster.py @@ -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