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:
commit
a777872c0e
@ -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.
|
* 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`.
|
* Fix type error with `m` option in `cluster_network`.
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ def _add_land_use_constraint(n):
|
|||||||
def _add_land_use_constraint_m(n, planning_horizons, config):
|
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
|
# 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
|
current_horizon = snakemake.wildcards.planning_horizons
|
||||||
|
|
||||||
for carrier in ["solar", "onwind", "offwind-ac", "offwind-dc"]:
|
for carrier in ["solar", "onwind", "offwind-ac", "offwind-dc"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user