개정판 cd915509
remove unused line
Change-Id: I626765590fe26703ca064b049cb30250226fc1de
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
70 | 70 |
RIGHT = 5 |
71 | 71 |
|
72 | 72 |
class Worker(QObject): |
73 |
from PyQt5.QtCore import QThread |
|
74 |
from PyQt5.QtCore import QTranslator |
|
75 |
from PyQt5.QtWidgets import QApplication, QLabel, QWidget, QGridLayout, QListWidget |
|
76 |
import sys |
|
73 |
#from PyQt5.QtCore import QThread
|
|
74 |
#from PyQt5.QtCore import QTranslator
|
|
75 |
#from PyQt5.QtWidgets import QApplication, QLabel, QWidget, QGridLayout, QListWidget
|
|
76 |
#import sys
|
|
77 | 77 |
|
78 | 78 |
''' |
79 | 79 |
@history 2018.05.30 Jeongwoo Remove parameter on recognizeLine signal / Change signal name (drawDetectedItems) |
... | ... | |
1260 | 1260 |
flange_list = [] |
1261 | 1261 |
blind_list = [] |
1262 | 1262 |
|
1263 |
print('flag3.9') |
|
1263 |
#print('flag3.9')
|
|
1264 | 1264 |
configs = app_doc_data.getConfigs('Project', 'Operation') |
1265 | 1265 |
instrument = int(configs[0].value) if configs else 1 |
1266 | 1266 |
if app_doc_data.lines: |
... | ... | |
1275 | 1275 |
-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
1276 | 1276 |
worker.displayLog.emit(MessageType.Error, message) |
1277 | 1277 |
# up to here |
1278 |
print('flag3.98') |
|
1278 |
#print('flag3.98')
|
|
1279 | 1279 |
# connect line to line |
1280 | 1280 |
try: |
1281 | 1281 |
for line in app_doc_data.lines: |
... | ... | |
1284 | 1284 |
|
1285 | 1285 |
for match in matches: |
1286 | 1286 |
detector.connectLineToLine(match, line, toler) |
1287 |
print('flag3.989') |
|
1287 |
#print('flag3.989')
|
|
1288 | 1288 |
# change line type using symbol connection type(info) |
1289 | 1289 |
for sym in symbols: |
1290 | 1290 |
if sym.conn_type: |
... | ... | |
1298 | 1298 |
f"{sys.exc_info()[-1].tb_lineno}" |
1299 | 1299 |
worker.displayLog.emit(MessageType.Error, message) |
1300 | 1300 |
# up to here |
1301 |
print('flag3.99') |
|
1301 |
#print('flag3.99')
|
|
1302 | 1302 |
|
1303 | 1303 |
# make short line that can not detected, symbol to symbol |
1304 | 1304 |
try: |
... | ... | |
1426 | 1426 |
worker.displayLog.emit(MessageType.Error, message) |
1427 | 1427 |
# up to here |
1428 | 1428 |
|
1429 |
print('flag4') |
|
1429 |
#print('flag4')
|
|
1430 | 1430 |
worker.create_unknown_items(mainRes) |
1431 | 1431 |
worker.add_detected_items_to_scene.emit(worker.scene, [flange_list, blind_list]) |
1432 | 1432 |
worker.cond.wait(worker.mutex) |
... | ... | |
1489 | 1489 |
worker.displayLog.emit(MessageType.Error, message) |
1490 | 1490 |
# up to here |
1491 | 1491 |
|
1492 |
print('flag5') |
|
1492 |
#print('flag5')
|
|
1493 | 1493 |
worker.save_scene.emit(worker.scene) |
1494 | 1494 |
worker.cond.wait(worker.mutex) |
1495 | 1495 |
|
... | ... | |
3971 | 3971 |
|
3972 | 3972 |
def startThread(self): |
3973 | 3973 |
"""start thread""" |
3974 |
from PyQt5 import QtWidgets |
|
3974 |
#from PyQt5 import QtWidgets
|
|
3975 | 3975 |
from App import App |
3976 | 3976 |
|
3977 | 3977 |
self.ui.buttonBox.setDisabled(True) |
내보내기 Unified diff