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
a0683141
Commit
a0683141
authored
Apr 26, 2018
by
Sulfyderz
Browse files
Test: ON
parent
b9a1dcd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4dl/Show.py
View file @
a0683141
...
...
@@ -3884,9 +3884,8 @@ class Show(object):
if
z
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
)
and
z
[
'stop'
]
<=
(
valueRef
[
'stop'
]
+
tolerance
):
# Aucune action, tous les segments dans cet interval sont supprimés
valueTmp
=
DiarTools
.
dropSegment
(
z
,
valueTmp
)
alarmViterbi
=
True
#
alarmViterbi=True
elif
z
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
)
and
z
[
'stop'
]
>
(
valueRef
[
'stop'
]
+
tolerance
):
#and z['start']<(valueRef['stop']-tolerance):
# partie permettant de savoir si on coupe le segment ou le detruit directement
stopTmp
=
None
for
u
in
range
(
i
+
1
,
len
(
diarRef
)):
...
...
@@ -3926,7 +3925,7 @@ class Show(object):
actionsIncrementalSegmentationSegmentDeleteThrTurn
.
append
(
copy
.
deepcopy
(
z
))
alarmViterbiValue
=
z
[
'stop'
]
valueTmp
=
DiarTools
.
dropSegment
(
z
,
valueTmp
)
alarmViterbi
=
True
#
alarmViterbi=True
#elif z['start']>=(valueRef['stop']-tolerance):
# # On laisse le traitement de ce segment à la prochaine iteration
# break
...
...
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