Skip to content
Snippets Groups Projects
Commit c2b83363 authored by Manuel Günther's avatar Manuel Günther
Browse files

Updated detected test data

parent 1a3753af
Branches
Tags
1 merge request!1Standarization
No preview for this file type
No preview for this file type
...@@ -15,7 +15,17 @@ regenerate_refs = False ...@@ -15,7 +15,17 @@ regenerate_refs = False
import bob.bio.base import bob.bio.base
import bob.bio.face 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): def _image(preprocessor):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment