Merge branch 'master' into io-api-option

This commit is contained in:
Fabian Neumann 2024-01-24 16:16:20 +01:00 committed by GitHub
commit b0c9121b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,7 +282,10 @@ def plot_balances():
# remove trailing link ports
df.index = [
i[:-1]
if ((i not in ["co2", "NH3", "H2"]) and (i[-1:] in ["0", "1", "2", "3"]))
if (
(i not in ["co2", "NH3", "H2"])
and (i[-1:] in ["0", "1", "2", "3", "4"])
)
else i
for i in df.index
]