We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 529afea commit 3766b85Copy full SHA for 3766b85
1 file changed
scripts/pypsa-de/additional_functionality.py
@@ -37,7 +37,7 @@ def add_capacity_limits(n, investment_year, limits_capacity, sense="maximum"):
37
valid_components & ~c.static[attr + "_nom_extendable"]
38
]
39
extendable_index = c.static.index[
40
- valid_components & c.static[attr + "_nom_extendable"]
+ valid_components & c.static[attr + "_nom_extendable"] & c.static.active
41
42
43
existing_capacity = c.static.loc[existing_index, attr + "_nom"].sum()
0 commit comments