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

Made LRPCA tests less strict

parent f1ab9a01
......@@ -85,7 +85,7 @@ def test_lrpca():
extractor3.load(temp_file)
extractor2.load(reference_file)
assert numpy.allclose(extractor3(preprocessed), extractor2(preprocessed), atol=1e-5, rtol=1e-8)
assert numpy.allclose(extractor3(preprocessed), extractor2(preprocessed), atol=1e-3, rtol=1e-5)
finally:
if os.path.exists(temp_file):
......@@ -94,7 +94,7 @@ def test_lrpca():
# now, we can execute the extractor and check that the feature is still identical
extracted = extractor3(preprocessed)
reference = pkg_resources.resource_filename('bob.bio.csu.test', 'data/lrpca_extracted.hdf5')
_compare(extracted, reference, extractor.write_feature, extractor.read_feature, atol=1e-5, rtol=1e-8)
_compare(extracted, reference, extractor.write_feature, extractor.read_feature, atol=1e-3, rtol=1e-5)
......
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