Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahan Kropf committed Dec 7, 2023
1 parent d9e98ce commit 274cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/hazard/centroids/centr.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def from_geodataframe(cls, gdf):
Centroids
Centroids built from the geodataframe.
"""
if np.any(geom.geom_type != 'Point'):
if np.any(gdf.geom_type != 'Point'):
raise ValueError(
'The inpute geodataframe contains geometries'
' that are not points.'
Expand Down

0 comments on commit 274cf20

Please sign in to comment.