diff --git a/bob/bio/csu/test/data/ldair_detected.hdf5 b/bob/bio/csu/test/data/ldair_detected.hdf5 index 4fd714031471954f33067cde7c14adaf0fdd49c5..0437820cc202630344aa80e767a27cf15affb513 100644 Binary files a/bob/bio/csu/test/data/ldair_detected.hdf5 and b/bob/bio/csu/test/data/ldair_detected.hdf5 differ diff --git a/bob/bio/csu/test/data/lrpca_detected.hdf5 b/bob/bio/csu/test/data/lrpca_detected.hdf5 index 2beab06a2ea00ac2ae451af774aece25fc355188..351d0dee4025c64274fb92e05efdd77942944038 100644 Binary files a/bob/bio/csu/test/data/lrpca_detected.hdf5 and b/bob/bio/csu/test/data/lrpca_detected.hdf5 differ diff --git a/bob/bio/csu/test/test_preprocessors.py b/bob/bio/csu/test/test_preprocessors.py index b3f7d5f79a0ddad1e0bc68c96f8a7220bfdbeee5..d4d9827bf1a231348c43cfb15eecad1b35b309a8 100644 --- a/bob/bio/csu/test/test_preprocessors.py +++ b/bob/bio/csu/test/test_preprocessors.py @@ -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):