Skip to content

Commit

Permalink
relaxed maximum deviation allowed in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klytje committed Oct 22, 2024
1 parent 3bf1d50 commit 665ba0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sascalculator/utest_sas_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def test_debye_impl(self):
errs = (external - analytical)/analytical
different_entries = 0
for val in np.abs(errs):
self.assertLessEqual(val, 0.01, "Ensure that the error is acceptable.")
self.assertLessEqual(val, 0.02, "Ensure that the error is acceptable.")
if val != 0:
different_entries += 1
self.assertTrue(different_entries > len(q)*0.5, "Check that two different algorithms were actually run.")
Expand All @@ -268,7 +268,7 @@ def test_debye_impl(self):

errs = (external - analytical)/analytical
for val in np.abs(errs):
self.assertLessEqual(val, 0.01)
self.assertLessEqual(val, 0.02)

def test_calculator_elements(self):
"""
Expand Down

0 comments on commit 665ba0c

Please sign in to comment.