Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Oct 25, 2024
1 parent 0c4aa6d commit 2c06b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geofabrics/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def clip_within_polygon(
geopandas.read_file(path).to_crs(self.catchment_geometry.crs))
clip_polygon = pandas.concat(clip_polygon).dissolve()
clip_polygon = clip_polygon.clip(dem_bounds)
clip_polygon.area.sum() > self.catchment_geometry.resolution ** 2:
if clip_polygon.area.sum() > self.catchment_geometry.resolution ** 2:
self.logger.info(f"Clipping to remove all features in polygons {polygon_paths}")
mask = clip_mask(
arr=self._dem.z,
Expand Down

0 comments on commit 2c06b67

Please sign in to comment.