From 3344657b32a7e2c1e9ce5ab77aeccbbe963894db Mon Sep 17 00:00:00 2001 From: Santonia27 Date: Thu, 2 Jan 2025 11:44:17 +0100 Subject: [PATCH] update default aggregation label --- hydromt_fiat/fiat.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hydromt_fiat/fiat.py b/hydromt_fiat/fiat.py index 64d5b28b..af8f0d86 100644 --- a/hydromt_fiat/fiat.py +++ b/hydromt_fiat/fiat.py @@ -1309,10 +1309,8 @@ def create_default_aggregation( default_aggregation_gdf = gpd.GeoDataFrame(geometries, crs=crs) # Create Aggregation Label Value - default_aggregation_gdf["value"] = range( - 1, len(default_aggregation_gdf["geometry"]) + 1, 1 - ) - default_aggregation_gdf["value"] = default_aggregation_gdf["value"].astype(str) + default_aggregation_gdf["value"] = [ + f"Aggr:{i}" for i in range(1, len(default_aggregation_gdf["geometry"]) + 1)] default_aggregation_gdf.rename( columns={"value": "default_aggregation"}, inplace=True )