Decide of the naming of strict or relaxed equality (__eq__
or raster_equal
?)
#316
Labels
enhancement
Feature improvement or request
__eq__
or raster_equal
?)
#316
See #313 (comment)
Right now
__eq__
checks thatdata.data
anddata.mask
(and other attributes) are equal, andnp.ma.allequal
can be used to compare.data
with masked values.Several solutions we could implement:
np.array_equal
to__array_function__
to be castable on aRaster
;gu.raster_equal
function that accounts potentially for nodata with an argument;__eq__
, what do we do? Should we mirror behaviour from NumPy or not for this? Actually NumPy broadcasts to element-wise equality with__eq__
.Example copied from @adehecq on Slack:
The text was updated successfully, but these errors were encountered: