From fe43cde7617520427af03578160ea25a3255a54b Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 13 Aug 2024 14:47:10 +1200 Subject: [PATCH] drop_duplicates(subset="id") --- batch_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch_process.py b/batch_process.py index 0cfe34fe..7f98e151 100755 --- a/batch_process.py +++ b/batch_process.py @@ -36,7 +36,7 @@ shorelines.set_index("id", inplace=True) # Transects, origin is landward -transects_gdf = gpd.read_file("transects.geojson").to_crs(CRS) +transects_gdf = gpd.read_file("transects.geojson").to_crs(CRS).drop_duplicates(subset="id") transects_gdf.set_index("id", inplace=True) print(f"{time.time() - start}: Reference polygons and shorelines loaded")