Commit da5b5c5b authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixing issue #5

parent a827995b
......@@ -167,7 +167,10 @@ def test_from_openbr():
assert columns[i][j] == reference[i][j], str(columns[i]) + " != " + str(reference[i])
# check that the score is close (OpenBR write scores in float32 precision only)
assert abs(columns[i][-1] - numpy.float32(reference[i][-1])) <= 1e-8, str(columns[i][-1]) + " != " + str(reference[i][-1])
assert numpy.isclose(columns[i][-1], reference[i][-1], atol = 1e-3, rtol=1e-8), str(columns[i][-1]) + " != " + str(reference[i][-1])
#assert numpy.isclose(columns[i][-1], reference[i][-1], atol = 1e-3, rtol=1e-8), str(columns[i][-1]) + " != " + str(reference[i][-1])
assert numpy.allclose(columns[i][-1], reference[i][-1], atol = 1e-3, rtol=1e-8), str(columns[i][-1]) + " != " + str(reference[i][-1])
finally:
shutil.rmtree(temp_dir)
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