개정판 4b36ebf5
issue #663: fix detection
Change-Id: If228b7209f15e440a810e734589254c6b0c23bd6
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1243 | 1243 |
symbols = app_doc_data.symbols |
1244 | 1244 |
configs = app_doc_data.getConfigs('Line Detector', 'Length to connect line') |
1245 | 1245 |
toler = int(configs[0].value) if configs else 20 |
1246 |
|
|
1246 | 1247 |
# detect flange |
1247 | 1248 |
flange_list = [] |
1249 |
|
|
1250 |
configs = app_doc_data.getConfigs('Project', 'Operation') |
|
1251 |
instrument = int(configs[0].value) if configs else 1 |
|
1248 | 1252 |
if app_doc_data.lines: |
1249 | 1253 |
# connect line to symbol |
1250 | 1254 |
try: |
... | ... | |
1281 | 1285 |
worker.displayLog.emit(MessageType.Error, message) |
1282 | 1286 |
# up to here |
1283 | 1287 |
|
1284 |
configs = app_doc_data.getConfigs('Project', 'Operation') |
|
1285 |
instrument = int(configs[0].value) if configs else 1 |
|
1286 |
|
|
1287 | 1288 |
# detect flange |
1288 | 1289 |
try: |
1289 | 1290 |
if instrument == 1: |
내보내기 Unified diff