Merge pull request #692 from PyPSA/FabianHofmann-patch-1

fix carrier assignment
This commit is contained in:
Fabian Hofmann 2023-07-06 16:12:43 +02:00 committed by GitHub
commit e78faac49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ def sanitize_carriers(n, config):
for c in n.iterate_components():
if "carrier" in c.df:
add_missing_carriers(n, c.df)
add_missing_carriers(n, c.df.carrier)
carrier_i = n.carriers.index
nice_names = (