Commit c2b83363 authored by Manuel Günther's avatar Manuel Günther

Updated detected test data

parent 1a3753af
......@@ -15,7 +15,17 @@ regenerate_refs = False
import bob.bio.base
import bob.bio.face
from bob.bio.face.test.test_preprocessors import _annotation, _compare
from bob.bio.face.test.test_preprocessors import _annotation
def _compare(data, reference, write_function = bob.bio.base.save, read_function = bob.bio.base.load, atol = 1e-5, rtol = 1e-8):
# write reference?
if regenerate_refs:
write_function(data, reference)
# compare reference
reference = read_function(reference)
assert numpy.allclose(data, reference, atol=atol, rtol=rtol)
return reference
def _image(preprocessor):
......
Markdown is supported
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