Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MaggotUBA-adapter
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
MaggotUBA-adapter
Commits
64cd64bb
Commit
64cd64bb
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
fixes #4 and implements ABC -> AAC
parent
7c90c963
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/maggotuba/models/predict_model.py
+6
-1
6 additions, 1 deletion
src/maggotuba/models/predict_model.py
with
6 additions
and
1 deletion
src/maggotuba/models/predict_model.py
+
6
−
1
View file @
64cd64bb
...
@@ -175,8 +175,13 @@ def apply_filters(labels, post_filters):
...
@@ -175,8 +175,13 @@ def apply_filters(labels, post_filters):
# modify sequentially
# modify sequentially
for
k
in
range
(
1
,
len
(
labels
)
-
1
):
for
k
in
range
(
1
,
len
(
labels
)
-
1
):
label
=
labels
[
k
-
1
]
label
=
labels
[
k
-
1
]
if
labels
[
k
-
1
]
!=
label
and
label
==
labels
[
k
+
1
]:
if
labels
[
k
]
!=
label
and
label
==
labels
[
k
+
1
]:
labels
[
k
]
=
label
labels
[
k
]
=
label
elif
post_filter
==
'
ABC->AAC
'
:
# modify sequentially
for
k
in
range
(
1
,
len
(
labels
)
-
1
):
if
labels
[
k
-
1
]
!=
labels
[
k
]
and
labels
[
k
]
!=
labels
[
k
+
1
]:
labels
[
k
]
=
labels
[
k
-
1
]
else
:
else
:
raise
ValueError
(
f
"
filter not supported:
{
post_filter
}
"
)
raise
ValueError
(
f
"
filter not supported:
{
post_filter
}
"
)
return
labels
return
labels
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment