[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6da50bf25a
commit
6ba598f426
@ -257,14 +257,21 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
|
|||||||
|
|
||||||
# for offshore the splitting only includes coastal regions
|
# for offshore the splitting only includes coastal regions
|
||||||
inv_ind = [
|
inv_ind = [
|
||||||
i for i in inv_ind if (i + name_suffix) in n.generators.index.str
|
i
|
||||||
.replace(str(baseyear), str(grouping_year))
|
for i in inv_ind
|
||||||
|
if (i + name_suffix)
|
||||||
|
in n.generators.index.str.replace(
|
||||||
|
str(baseyear), str(grouping_year)
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
p_max_pu = n.generators_t.p_max_pu[
|
p_max_pu = n.generators_t.p_max_pu[
|
||||||
[i + name_suffix for i in inv_ind]
|
[i + name_suffix for i in inv_ind]
|
||||||
]
|
]
|
||||||
p_max_pu.columns = [i + name_suffix.replace(str(grouping_year), str(baseyear)) for i in inv_ind]
|
p_max_pu.columns = [
|
||||||
|
i + name_suffix.replace(str(grouping_year), str(baseyear))
|
||||||
|
for i in inv_ind
|
||||||
|
]
|
||||||
|
|
||||||
n.madd(
|
n.madd(
|
||||||
"Generator",
|
"Generator",
|
||||||
|
Loading…
Reference in New Issue
Block a user