assert_dim_file_equal

assert_dim_file_equal#

assert_dim_file_equal(path_1: str | CloudPath | Path, path_2: str | CloudPath | Path) None[source]#

Assert that two .dim files are equal.

Useful for pytests.

Parameters:
  • path_1 (AnyPathStrType) – Raster 1

  • path_2 (AnyPathStrType) – Raster 2

Example

>>> path = r"CI/DATA/rasters/raster.dim"
>>> assert_dim_file_equal(path, path)
>>> # Raises AssertionError if sth goes wrong