Skip to content

Commit

Permalink
update default aggregation label
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonia27 committed Jan 2, 2025
1 parent 5728a2f commit 3344657
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hydromt_fiat/fiat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 3344657

Please sign in to comment.