Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre-Alexandre Broux
s4dl
Commits
b6ac1f02
Commit
b6ac1f02
authored
Apr 26, 2018
by
Sulfyderz
Browse files
Test: ON
parent
500db2de
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4dl/Show.py
View file @
b6ac1f02
...
...
@@ -3862,6 +3862,11 @@ class Show(object):
# si 1 alors affectation + move bound si besoin/et ou create bound sur stop
# si > 1 alors affectation + move bound si besoin/et ou create bound sur stop + merge
else
:
print
(
"SAME #1:"
,
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)))
if
not
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)):
print
(
valueTmp
)
print
(
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
))
return
# verifie que la valueRef ne se trouve pas recouvert par la tolerance
if
not
DiarTools
.
segmentExistsAccordingToTolerance
(
valueRef
,
tolerance
):
for
z
in
listHypRefSegment
:
...
...
@@ -3969,6 +3974,7 @@ class Show(object):
if
not
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)):
print
(
valueTmp
)
print
(
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
))
return
for
idx
,
z
in
enumerate
(
listIndexHypRefSegment
):
# partie affectation
applyChange
=
False
...
...
@@ -4278,7 +4284,7 @@ class Show(object):
valueTmp
=
DiarTools
.
dropSegment
(
valueTmp
[
z
],
valueTmp
)
valueTmp
.
append_seg
(
segmentTmp
)
valueTmp
.
sort
()
print
(
"SAME OUT:"
,
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)))
if
not
perfectBoundary
:
...
...
@@ -4382,7 +4388,11 @@ class Show(object):
if
actionsIncremental
:
actionsIncrementalSegmentationBoundaryMergeThrTurn
.
append
(
copy
.
deepcopy
([
newSegment
,
listTmp
[
y
]]))
newSegment
,
valueTmp
=
DiarTools
.
mergeSegment
(
newSegment
,
listTmp
[
y
],
valueTmp
)
print
(
"SAME #2:"
,
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)))
if
not
DiarTools
.
sameDiar
(
valueTmp
,
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
)):
print
(
valueTmp
)
print
(
DiarTools
.
releaseFramesAccordingToDiar
(
diarRef
,
valueTmp
))
return
# MAJ diar
value
=
valueTmp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment