개정판 0578c2ae
issue #1198: 라인의 Stream No 순으로 Loop을 생성한다
Change-Id: I4e42d59c3ac1099e3271d7735d017e273b38eb90
HYTOS/HYTOS/Commands/HydroCalculationCommand.py | ||
---|---|---|
125 | 125 |
# end at connector |
126 | 126 |
elif loop.items[-1].connectedItem and int(loop.items[-1].connectedItem._conn_index) == 2: |
127 | 127 |
matches = [conn for conn in loop.items[-1].parentItem().connectors if |
128 |
(not conn in loop.items) and conn.connectedItem and int(
|
|
129 |
conn.connectedItem._conn_index) == 1]
|
|
128 |
(not conn in loop.items) and conn.connectedItem and |
|
129 |
int(conn.connectedItem._conn_index) == 1]
|
|
130 | 130 |
if matches: |
131 |
# sort by stream no of line |
|
132 |
matches.sort(key=lambda conn: conn.connectedItem.parentItem().stream_no) |
|
131 | 133 |
for match in matches[1:]: |
132 | 134 |
res.append(QEngineeringLoopItem(loop.items + [match])) |
133 | 135 |
loop.items.append(matches[0]) |
내보내기 Unified diff