Skip to content

Commit

Permalink
fix typo in from_exposures method
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-hlsn committed Dec 4, 2023
1 parent 84de9bf commit 1ab1b69
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 @@ -250,7 +250,7 @@ def from_exposures(cls, exposures):
Centroids built from the exposures
"""
gdf = exposures.gdf[['geometry', 'region_id']]
return cls.from_geodtaframe(gdf)
return cls.from_geodataframe(gdf)

@classmethod
def from_pnt_bounds(cls, points_bounds, res, crs=DEF_CRS):
Expand Down

0 comments on commit 1ab1b69

Please sign in to comment.