개정판 f2c98448
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