Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Oct 9, 2024
1 parent 5e6e9dd commit 0a0b1e4
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/geofabrics/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ def empty(self) -> bool:
def calculate_dem_bounds(self, dem):
"""Return the bounds for a DEM."""
dem_bounds = geopandas.GeoDataFrame(
{
"geometry": [
shapely.geometry.box(*dem.rio.bounds())
]
},
geometry=[shapely.geometry.box(*dem.rio.bounds())],
crs=dem.rio.crs,
)
return dem_bounds
Expand Down Expand Up @@ -2390,15 +2386,7 @@ def add_patch(self, patch_path: pathlib.Path, label: str, layer: str):
)
return False
patch_bounds = geopandas.GeoDataFrame(
{
"geometry": [
shapely.geometry.Polygon(
[
shapely.geometry.box(*patch.rio.bounds())
]
)
]
},
geometry=[shapely.geometry.box(*patch.rio.bounds())],
crs=self.catchment_geometry.crs["horizontal"],
)
if not self.patch_on_top:
Expand Down

0 comments on commit 0a0b1e4

Please sign in to comment.