Skip to content

Commit 565d42f

Browse files
fix linter issue
1 parent 3d1f279 commit 565d42f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

climada/hazard/centroids/centr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,13 @@ def append(self, *centr):
356356
union : Union of Centroid objects.
357357
remove_duplicate_points : Remove duplicate points in a Centroids object.
358358
"""
359-
for cc in centr:
360-
if not u_coord.equal_crs(self.crs, cc.crs):
359+
for other in centr:
360+
if not u_coord.equal_crs(self.crs, other.crs):
361361
raise ValueError(
362-
f"The given centroids use different CRS: {self.crs}, {cc.crs}. "
362+
f"The given centroids use different CRS: {self.crs}, {other.crs}. "
363363
"The centroids are incompatible and cannot be concatenated."
364364
)
365-
self.gdf = pd.concat([self.gdf] + [cc.gdf for cc in centr])
365+
self.gdf = pd.concat([self.gdf] + [other.gdf for other in centr])
366366

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

0 commit comments

Comments
 (0)