Merge pull request #1106 from PyPSA/fix_float_bug

prepare_sector_network: add floating wind to update cost function
This commit is contained in:
Fabian Neumann 2024-06-17 18:55:34 +02:00 committed by GitHub
commit b6e4bb8e91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -456,7 +456,7 @@ def update_wind_solar_costs(n, costs):
clustermaps = busmap_s.map(busmap)
# code adapted from pypsa-eur/scripts/add_electricity.py
for connection in ["dc", "ac"]:
for connection in ["dc", "ac", "float"]:
tech = "offwind-" + connection
if tech not in n.generators.carrier.values:
continue