프로젝트

일반

사용자정보

개정판 f2c98448

IDf2c9844817790d72b37e4380dd21cfcc9c23f48f
상위 5cc60caa
하위 c3622f39, aea7d096

함의성이(가) 2년 이상 전에 추가함

fix LineNoTracer

Change-Id: Ie385cb05c68781f509bc994cee17492014ac8e21

차이점 보기:

DTI_PID/DTI_PID/LineNoTracer.py
382 382
                                             x not in visited) and obj.is_connected(x, None)]
383 383
                    nextMatches = symbolMatches + lineMatches
384 384

  
385
                    if len(visited) > 1: # symbol must pass straight, choose one if connected items are more than 2
386
                        matches = [x for x in visited if obj.is_connected(x)]
387
                        if matches:
388
                            next_connected = [x for x in nextMatches if obj.next_connected(x, matches[0])]
389

  
390
                            if next_connected:
391
                                nextMatches = next_connected
392
                            else:
393
                                #nextMatches = [nextMatches[0]]
394
                                nextMatches = []
395

  
396
                    '''
385 397
                    if len(visited) > 1 and len(nextMatches) > 1: # symbol must pass straight, choose one if connected items are more than 2
386 398
                        matches = [x for x in visited if obj.is_connected(x)]
387 399
                        if matches:
......
399 411
                                nextMatches = [next_connected[0]]
400 412
                            else:
401 413
                                nextMatches = []
414
                    '''
402 415

  
403 416
                    # if obj symbol has break connector and nextMatch connected that connector than break line group
404 417
                    if nextMatches and obj.break_connector and [index for index in obj.break_connector if

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)