Skip to content

Commit

Permalink
Merge pull request #725 from PyPSA/nice-name-camel
Browse files Browse the repository at this point in the history
sanitize_carriers: do not invent nice names, use carrier where not av…
  • Loading branch information
FabianHofmann authored Aug 21, 2023
2 parents d7554bc + 6cdb194 commit 1fc83b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def sanitize_carriers(n, config):
nice_names = (
pd.Series(config["plotting"]["nice_names"])
.reindex(carrier_i)
.fillna(carrier_i.to_series().str.title())
.fillna(carrier_i.to_series())
)
n.carriers["nice_name"] = n.carriers.nice_name.where(
n.carriers.nice_name != "", nice_names
Expand Down

0 comments on commit 1fc83b7

Please sign in to comment.