Skip to content

Commit

Permalink
Increase tolerance in truncated_normal test
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Apr 23, 2024
1 parent 2586a4f commit 998751b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_tests/config/test_transfer_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_that_truncated_normal_stays_within_bounds(x, arg):
)
def test_that_truncated_normal_is_monotonic(x1x2, arg):
x1, x2 = x1x2
assume((x2 - x1) > abs(arg[0] / 1e14) + 1e-14) # tolerance relative to mean
assume((x2 - x1) > abs(arg[0] / 1e13) + 1e-13) # tolerance relative to mean
result1 = TransferFunction.trans_truncated_normal(x1, arg)
result2 = TransferFunction.trans_truncated_normal(x2, arg)
# Results should be different unless clamped
Expand Down

0 comments on commit 998751b

Please sign in to comment.