Skip to content

Commit 54a3400

Browse files
committed
irfft: improved agilent test performance metric
1 parent 6caa079 commit 54a3400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

orangecontrib/spectroscopy/tests/test_irfft.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def test_agilent_fft_ab(self):
111111
# Calculate absorbance from ssc and rsc
112112
ab = np.log10(rsc / ssc)
113113
# Compare to agilent absorbance
114-
# NB 4 mAbs error
115-
np.testing.assert_allclose(ab[limits[0]:limits[1]], dat, atol=0.004)
114+
# NB 0.4 mAbs max error
115+
np.testing.assert_allclose(ab[limits[0]:limits[1]], dat, rtol=2.5e-04)
116116

117117
def test_multi(self):
118118
dx_ag = (1 / 1.57980039e+04 / 2) * 4
@@ -148,8 +148,8 @@ def test_multi_ab(self):
148148
# Calculate absorbance from ssc and rsc
149149
ab = np.log10(rsc / ssc)
150150
# Compare to agilent absorbance
151-
# NB 4 mAbs error
152-
np.testing.assert_allclose(ab[:, limits[0]:limits[1]], dat, atol=0.004)
151+
# NB 0.4 mAbs max error
152+
np.testing.assert_allclose(ab[:, limits[0]:limits[1]], dat, rtol=2.5e-04)
153153

154154
def test_apodization(self):
155155
for apod_func in ApodFunc:

0 commit comments

Comments
 (0)