Merge branch 'master' into copy-config-module

This commit is contained in:
Fabian Neumann 2024-01-24 16:25:59 +01:00 committed by GitHub
commit 7dade71607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1071 deletions

File diff suppressed because it is too large Load Diff

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
]