Skip to content

Commit

Permalink
Update threshold for size from mesh func
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Sep 25, 2023
1 parent 62bc573 commit ab9e99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/hfun.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ def test_calculated_size(self):
hfun_calc_val = hfun_calc_jig.value
hfun_val_diff = self.hfun_orig_val - hfun_calc_val

# TODO: Come up with a more robust criteria
threshold = 0.2
# TODO: Come up with a more robust criteria!
threshold = 0.21
err_value = np.max(np.abs(hfun_val_diff))/np.max(self.hfun_orig_val)
self.assertTrue(err_value < threshold)

Expand Down

0 comments on commit ab9e99d

Please sign in to comment.