Fix gas network retrofit
This commit is contained in:
parent
5ecd56d53c
commit
cc49926a23
@ -181,6 +181,8 @@ Upcoming Release
|
|||||||
|
|
||||||
* Fix custom busmap read in `cluster_network`.
|
* Fix custom busmap read in `cluster_network`.
|
||||||
|
|
||||||
|
* Fix gas network retrofitting in `add_brownfield`.
|
||||||
|
|
||||||
PyPSA-Eur 0.10.0 (19th February 2024)
|
PyPSA-Eur 0.10.0 (19th February 2024)
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ def add_brownfield(n, n_p, year):
|
|||||||
# already retrofitted capacity from gas -> H2
|
# already retrofitted capacity from gas -> H2
|
||||||
already_retrofitted = (
|
already_retrofitted = (
|
||||||
n.links.loc[h2_retrofitted_fixed_i, "p_nom"]
|
n.links.loc[h2_retrofitted_fixed_i, "p_nom"]
|
||||||
.rename(lambda x: x.split("-2")[0].replace(fr, to))
|
.rename(lambda x: x.split("-2")[0].replace(fr, to) + f"-{year}")
|
||||||
.groupby(level=0)
|
.groupby(level=0)
|
||||||
.sum()
|
.sum()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user