개정판 6a9a247d
add setscale context, fix run sort, fix item tree
Change-Id: I9921faf84f7509546bc3c659846a122c5cd34517
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
370 | 370 |
_lineNo.runs[index].explode() |
371 | 371 |
# up to here |
372 | 372 |
|
373 |
# make fixed run |
|
374 |
for _lineNo in self._lineNos: |
|
375 |
for _run in _lineNo.runs: |
|
376 |
matches = [item for item in _run.items if type(item) is QEngineeringLineItem and item.prop('Freeze')] |
|
377 |
if matches: |
|
378 |
_run._fixed = True |
|
379 |
else: |
|
380 |
_run._fixed = False |
|
381 |
# up to here |
|
382 |
|
|
373 | 383 |
# sort line no with from,to value |
374 | 384 |
self._lineNos.sort( |
375 | 385 |
key=lambda line_no: (1 if line_no.prop('From') else 0) + (1 if line_no.prop('To') else 0), |
내보내기 Unified diff