Skip to content

Commit

Permalink
Merge pull request #968 from Climact/feature/fix-duplicated-years
Browse files Browse the repository at this point in the history
Fix duplicated years in add_land_use_constraint_m
  • Loading branch information
fneum authored Mar 15, 2024
2 parents 0a0a35e + 1496c58 commit a5002f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ 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`.

PyPSA-Eur 0.10.0 (19th February 2024)
=====================================

Expand Down
2 changes: 1 addition & 1 deletion scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _add_land_use_constraint_m(n, planning_horizons, config):

previous_years = [
str(y)
for y in planning_horizons + grouping_years
for y in set(planning_horizons + grouping_years)
if y < int(snakemake.wildcards.planning_horizons)
]

Expand Down

0 comments on commit a5002f5

Please sign in to comment.