Update scripts/prepare_sector_network.py

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
Julian Geis 2024-01-19 09:57:26 +01:00 committed by GitHub
parent 88ba4af9ad
commit 9c56c1e929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1328,9 +1328,9 @@ def add_storage_and_grids(n, costs):
if "custom_h2_pipelines" in snakemake.input:
fn = snakemake.input.custom_h2_pipelines
wkn = pd.read_csv(fn, index_col=0)
custom_pipes = pd.read_csv(fn, index_col=0)
h2_pipes = pd.concat([h2_pipes, wkn])
h2_pipes = pd.concat([h2_pipes, custom_pipes])
# drop duplicates according to buses (order can be different) and keep pipe with highest p_nom
h2_pipes["buses_sorted"] = h2_pipes.apply(