Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Oct 14, 2022
2 parents f6394b9 + 9c81f65 commit 4b85d67
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/tespy/networks/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,8 @@ def check_conns(self):
for conns in self.conns.loc[
(self.conns["source"].values == c.source) &
(self.conns["source_id"].values == c.source_id),
"object"
]:
targets += [f"\"{conns.target.label}\" ({conns.target_id})"]
"object"]:
targets += [f"\"{conns.target.label}\" ({conns.target_id})"]
targets = ", ".join(targets)

msg = (
Expand All @@ -526,9 +525,8 @@ def check_conns(self):
for conns in self.conns.loc[
(self.conns["target"].values == c.target) &
(self.conns["target_id"].values == c.target_id),
"object"
]:
sources += [f"\"{conns.source.label}\" ({conns.source_id})"]
"object"]:
sources += [f"\"{conns.source.label}\" ({conns.source_id})"]
sources = ", ".join(sources)
msg = (
f"The target \"{c.target.label}\" ({c.target_id}) is attached "
Expand Down

0 comments on commit 4b85d67

Please sign in to comment.