Skip to content

Commit

Permalink
Reduce test tolerance to 4 decimal points
Browse files Browse the repository at this point in the history
  • Loading branch information
joeweiss committed Apr 17, 2024
1 parent 18cba89 commit 7286e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_embeddings():

for idx, i in enumerate(commandline_results):
# Specify the tolerance level
tolerance = 1e-6 # 6 decimal points tolerance between BirdNET and birdnetlib.
tolerance = 1e-4 # 4 decimal points tolerance between BirdNET and birdnetlib.

# Assert that the arrays are almost equal within the tolerance
assert np.allclose(
Expand Down

0 comments on commit 7286e74

Please sign in to comment.