Commit 0b4640c7 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[py] Remove debug DummyAnnotator added by mistake.

parent 0a328a44
Pipeline #44663 passed with stage
in 15 minutes and 35 seconds
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment