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
bob
bob.bio.base
Commits
0b4640c7
Commit
0b4640c7
authored
Oct 30, 2020
by
Yannick DAYER
Browse files
[py] Remove debug DummyAnnotator added by mistake.
parent
0a328a44
Pipeline
#44663
passed with stage
in 15 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/annotator/dummy.py
deleted
100644 → 0
View file @
0a328a44
import
bob.bio.base.annotator
import
logging
import
numpy
import
time
logger
=
logging
.
getLogger
(
__name__
)
class
DummyAnnotator
(
bob
.
bio
.
base
.
annotator
.
Annotator
):
def
__init__
(
self
,
**
kwargs
):
super
(
DummyAnnotator
,
self
).
__init__
(
**
kwargs
)
def
transform
(
self
,
sample
,
**
kwargs
):
for
s
in
sample
:
logger
.
debug
(
f
"Annotating sample:
{
s
.
key
}
"
)
s
.
annotations
=
{
"time"
:
time
.
localtime
(),
"rand"
:
list
(
numpy
.
random
.
uniform
(
0
,
1
,
2
))
}
time
.
sleep
(
0.1
)
return
sample
annotator
=
DummyAnnotator
()
\ No newline at end of file
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