Skip to content

Commit

Permalink
fix merging mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Sep 10, 2024
1 parent 92eb4ae commit b843362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions climada/hazard/centroids/centr.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def on_land(self):
""" Get the on_land property """
if 'on_land' not in self.gdf:
return None
if self.gdf['on_land'].on_land.isna().all():
if self.gdf['on_land'].isna().all():
return None
return self.gdf['on_land'].values

Expand All @@ -149,7 +149,7 @@ def region_id(self):
""" Get the assigned region_id """
if 'region_id' not in self.gdf:
return None
if self.gdf['region_id'].region_id.isna().all():
if self.gdf['region_id'].isna().all():
return None
return self.gdf['region_id'].values

Expand Down

0 comments on commit b843362

Please sign in to comment.