assert_raster_equal#
- assert_raster_equal(path_1: Union[str, CloudPath, Path], path_2: Union[str, CloudPath, Path]) None [source]#
Assert that two rasters are equal.
Useful for pytests.
>>> path = r"CI/DATA/rasters/raster.tif" >>> assert_raster_equal(path, path) >>> # Raises AssertionError if sth goes wrong
- Parameters:
path_1 (AnyPathStrType) – Raster 1
path_2 (AnyPathStrType) – Raster 2