Merge pull request #991 from Climact/feature/fix-grouping-years-reference

Fix grouping year reference in add_land_use_constraint_m
This commit is contained in:
Fabian Neumann 2024-04-03 11:38:34 +02:00 committed by GitHub
commit a777872c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ Upcoming Release
* Adapt the disabling of transmission expansion in myopic foresight optimisations when limit is already reached to also handle cost limits.
* Fix duplicated years in `add_land_use_constraint_m`.
* Fix duplicated years and grouping years reference in `add_land_use_constraint_m`.
* Fix type error with `m` option in `cluster_network`.

View File

@ -155,7 +155,7 @@ def _add_land_use_constraint(n):
def _add_land_use_constraint_m(n, planning_horizons, config):
# if generators clustering is lower than network clustering, land_use accounting is at generators clusters
grouping_years = config["existing_capacities"]["grouping_years"]
grouping_years = config["existing_capacities"]["grouping_years_power"]
current_horizon = snakemake.wildcards.planning_horizons
for carrier in ["solar", "onwind", "offwind-ac", "offwind-dc"]: