Skip to content

Commit

Permalink
resolve future warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed May 7, 2024
1 parent de198fa commit f6b6dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wntr/gis/geospatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def intersect(A, B, B_value=None, include_background=False, background_value=0):

for i in B.index:
B_geom = gpd.GeoDataFrame(B.loc[[i],:], crs=B.crs)
val = float(B_geom[B_value])
val = float(B_geom.iloc[0][B_value])
A_subset = A.loc[stats['intersections'].apply(lambda x: i in x),:]
#print(i, lines_subset)
A_clip = gpd.clip(A_subset, B_geom)
Expand Down

0 comments on commit f6b6dd4

Please sign in to comment.