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
15f655ce
Commit
15f655ce
authored
Mar 26, 2019
by
Sulfyderz
Browse files
[Error Update]:Correcting useless boundary create action.
parent
bba89c53
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4dl/Show.py
View file @
15f655ce
...
...
@@ -1516,7 +1516,10 @@ class Show(object):
if
tolerance
==
0
:
listTmp
.
append
(
y
)
elif
tolerance
!=
0
and
y
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
):
listTmp
.
append
(
y
)
#NEW LALA
if
not
y
[
'start'
]
>=
(
valueRef
[
'stop'
]
-
tolerance
):
#NEW LALA
listTmp
.
append
(
y
)
if
not
(
not
deleteBoundarySameConsecutiveSpk
and
listTmp
[
0
][
'cluster'
]
==
listTmp
[
1
][
'cluster'
]):
actionsSegmentationBoundaryMergeThr
.
append
(
copy
.
deepcopy
([
listTmp
[
0
],
listTmp
[
1
]]))
if
actionsIncremental
:
...
...
@@ -2430,7 +2433,10 @@ class Show(object):
if
tolerance
==
0
:
listTmp
.
append
(
y
)
elif
tolerance
!=
0
and
y
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
):
listTmp
.
append
(
y
)
#NEW LALA
if
not
y
[
'start'
]
>=
(
valueRef
[
'stop'
]
-
tolerance
):
#NEW LALA
listTmp
.
append
(
y
)
if
not
(
not
deleteBoundarySameConsecutiveSpk
and
listTmp
[
0
][
'cluster'
]
==
listTmp
[
1
][
'cluster'
]):
actionsSegmentationBoundaryMergeThr
.
append
(
copy
.
deepcopy
([
listTmp
[
0
],
listTmp
[
1
]]))
if
actionsIncremental
:
...
...
@@ -3110,7 +3116,10 @@ class Show(object):
if
tolerance
==
0
:
listTmp
.
append
(
y
)
elif
tolerance
!=
0
and
y
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
):
listTmp
.
append
(
y
)
#NEW LALA
if
not
y
[
'start'
]
>=
(
valueRef
[
'stop'
]
-
tolerance
):
#NEW LALA
listTmp
.
append
(
y
)
if
not
(
not
deleteBoundarySameConsecutiveSpk
and
listTmp
[
0
][
'cluster'
]
==
listTmp
[
1
][
'cluster'
]
and
valueRef
[
'cluster'
]
in
dictionary
and
listTmp
[
0
][
'cluster'
]
==
dictionary
[
valueRef
[
'cluster'
]]):
actionsSegmentationBoundaryMergeThr
.
append
(
copy
.
deepcopy
([
listTmp
[
0
],
listTmp
[
1
]]))
if
actionsIncremental
:
...
...
@@ -4106,7 +4115,10 @@ class Show(object):
if
tolerance
==
0
:
listTmp
.
append
(
y
)
elif
tolerance
!=
0
and
y
[
'start'
]
>=
(
valueRef
[
'start'
]
-
tolerance
):
listTmp
.
append
(
y
)
#NEW LALA
if
not
y
[
'start'
]
>=
(
valueRef
[
'stop'
]
-
tolerance
):
#NEW LALA
listTmp
.
append
(
y
)
if
not
(
not
deleteBoundarySameConsecutiveSpk
and
listTmp
[
0
][
'cluster'
]
==
listTmp
[
1
][
'cluster'
]
and
valueRef
[
'cluster'
]
in
dictionary
and
listTmp
[
0
][
'cluster'
]
==
dictionary
[
valueRef
[
'cluster'
]]):
actionsSegmentationBoundaryMergeThr
.
append
(
copy
.
deepcopy
([
listTmp
[
0
],
listTmp
[
1
]]))
if
actionsIncremental
:
...
...
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