Skip to content

Commit 0d35c6f

Browse files
committed
replace append with pandas concat in refine inventory
1 parent 5e5f809 commit 0d35c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ost/s1/refine_inventory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def _forward_search(aoi_gdf, inventory_df, area_reduce=0):
350350
union = gdf.geometry.unary_union
351351

352352
# add to overall union and to out_frame
353-
out_frame = out_frame.append(gdf)
353+
out_frame = pd.concat([out_frame, gdf])
354354

355355
# just for first loop
356356
if gdf_union is None:
@@ -449,7 +449,7 @@ def _backward_search(aoi_gdf, inventory_df, datelist, area_reduce=0):
449449
# we break the loop if we found enough
450450
if intersect_area >= aoi_area - area_reduce:
451451
# cleanup scenes
452-
out_frame = out_frame.append(temp_df)
452+
out_frame = pd.concat([out_frame, temp_df])
453453
temp_df = gpd.GeoDataFrame(columns=inventory_df.columns)
454454
gdf_union = None
455455

0 commit comments

Comments
 (0)