Skip to content

Commit

Permalink
Fixing issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofrepereira2012 committed Jan 8, 2016
1 parent a827995 commit da5b5c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bob/measure/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit da5b5c5

Please sign in to comment.