Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasColombi committed Dec 20, 2024
1 parent 3d1f279 commit 565d42f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions climada/hazard/centroids/centr.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ def append(self, *centr):
union : Union of Centroid objects.
remove_duplicate_points : Remove duplicate points in a Centroids object.
"""
for cc in centr:
if not u_coord.equal_crs(self.crs, cc.crs):
for other in centr:
if not u_coord.equal_crs(self.crs, other.crs):
raise ValueError(
f"The given centroids use different CRS: {self.crs}, {cc.crs}. "
f"The given centroids use different CRS: {self.crs}, {other.crs}. "
"The centroids are incompatible and cannot be concatenated."
)
self.gdf = pd.concat([self.gdf] + [cc.gdf for cc in centr])
self.gdf = pd.concat([self.gdf] + [other.gdf for other in centr])

def union(self, *others):
"""Create the union of the current Centroids object with one or more other centroids
Expand Down

0 comments on commit 565d42f

Please sign in to comment.