개정판 41f35ea2
issue #000: fix eq linetracer
Change-Id: If2525dba19d0dcc35e7278ce34d2e4a273ac9b47
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
231 | 231 |
if updateProgress: updateProgress.emit(self.maxValue) |
232 | 232 |
|
233 | 233 |
# find secondary lines |
234 |
lines_and_symbols = self._lines + self._symbols
|
|
234 |
lines_and_symbols = self._lines + [sym for sym in self._symbols if not issubclass(type(sym), QEngineeringEquipmentItem)]
|
|
235 | 235 |
self.find_secondary_lines(lines_and_symbols, include_signal=False) |
236 | 236 |
|
237 | 237 |
# double check conn line cuz startLine may need at first step |
... | ... | |
257 | 257 |
displayMessage.emit('Unknown line Topology Construction') |
258 | 258 |
orphanLines = [line for line in self._lines if line.owner is None] |
259 | 259 |
orphanSymbols = [symbol for symbol in self._symbols if |
260 |
symbol.owner is None and type(symbol) is not QEngineeringEquipmentItem]
|
|
260 |
symbol.owner is None and not issubclass(type(symbol), QEngineeringEquipmentItem)]
|
|
261 | 261 |
if orphanLines + orphanSymbols: |
262 | 262 |
self.maxValue = len(orphanLines) + 1 |
263 | 263 |
orphanLines = sorted(orphanLines, key=lambda param: param.length(), reverse=True) |
내보내기 Unified diff