개정판 16df5f39
issue #000: fix linetracer
Change-Id: I0979fe80779e9be38307183b23bcaa3fb506a2ce
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
581 | 581 |
message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename, |
582 | 582 |
sys.exc_info()[-1].tb_lineno) |
583 | 583 |
worker.display_message.emit(message) |
584 |
|
|
584 |
|
|
585 |
''' |
|
585 | 586 |
# clear line |
586 | 587 |
for line in lines: |
587 | 588 |
try: |
... | ... | |
590 | 591 |
message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename, |
591 | 592 |
sys.exc_info()[-1].tb_lineno) |
592 | 593 |
worker.display_message.emit(message) |
594 |
''' |
|
593 | 595 |
|
594 | 596 |
""" try to connect label to valve """ |
595 | 597 |
labels = [symbol for symbol in symbols if symbol.iType == 19] # Labels - Symbol => Instrument |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1874 | 1874 |
attrs = self.getAttributes() |
1875 | 1875 |
index = 0 |
1876 | 1876 |
for key in attrs.keys(): |
1877 |
if index >= 6: |
|
1878 |
break |
|
1877 |
#if index >= 6:
|
|
1878 |
# break
|
|
1879 | 1879 |
if key.AssocItem and not key.Freeze: |
1880 | 1880 |
key.AssocItem.owner = None |
1881 | 1881 |
self.remove_assoc_item(key.AssocItem) |
내보내기 Unified diff