Skip to content

Commit 822a9ae

Browse files
fix typo
1 parent ca86640 commit 822a9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/hazard/centroids/centr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def write_hdf5(self, file_name, mode="w"):
917917
pandas_df = pd.DataFrame(self.gdf)
918918
for col in pandas_df.columns:
919919
if str(pandas_df[col].dtype) == "geometry":
920-
if (self.gdf.geometry.geom_type == "Point").all():
920+
if (self.gdf.geom_type == "Point").all():
921921
pandas_df[col + ".x"] = self.gdf[col].x
922922
pandas_df[col + ".y"] = self.gdf[col].y
923923
pandas_df.drop(columns=[col], inplace=True)

0 commit comments

Comments
 (0)