Commit 4eeb5d83 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting useless boundary create action.

parent 73ff7c22
......@@ -3979,10 +3979,13 @@ class Show(object):
for z in listHypRefSegment:
# on coupe si frontiere pas ok pour rester que dans le segment de reference
if z['stop']>(valueRef['stop']+tolerance):
actionsSegmentationBoundaryCreateThr.append(copy.deepcopy([z,valueRef['stop']]))
if actionsIncremental:
actionsIncrementalSegmentationBoundaryCreateThrTurn.append(copy.deepcopy([z,valueRef['stop']]))
valueTmp=DiarTools.splitSegment(z,valueTmp,valueRef['stop'])
#NEW LALA
if not z['start']>=(valueRef['stop']-tolerance):
#NEW LALA
actionsSegmentationBoundaryCreateThr.append(copy.deepcopy([z,valueRef['stop']]))
if actionsIncremental:
actionsIncrementalSegmentationBoundaryCreateThrTurn.append(copy.deepcopy([z,valueRef['stop']]))
valueTmp=DiarTools.splitSegment(z,valueTmp,valueRef['stop'])
# Enleve les segments compris dans la marge tolérance (+ ou - tolérance)
if tolerance!=0:
......@@ -4064,7 +4067,10 @@ class Show(object):
if tolerance==0:
listHypRefSegment.append(y)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listHypRefSegment.append(y)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listHypRefSegment.append(y)
# fusionne entre eux si >1
......@@ -4111,7 +4117,10 @@ class Show(object):
if tolerance==0:
listIndexHypRefSegment.append(idx)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listIndexHypRefSegment.append(idx)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listIndexHypRefSegment.append(idx)
for idx,z in enumerate(listIndexHypRefSegment):
# partie affectation
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment