From cd2e484a0a9369f8d7a83174d2ce64931d758df2 Mon Sep 17 00:00:00 2001 From: Fabi Date: Fri, 16 Aug 2024 12:56:39 +0200 Subject: [PATCH] fixed test bug --- tests/test_irasa_knee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_irasa_knee.py b/tests/test_irasa_knee.py index e61ad81..52b949c 100644 --- a/tests/test_irasa_knee.py +++ b/tests/test_irasa_knee.py @@ -30,7 +30,7 @@ def test_irasa_knee_peakless(load_knee_aperiodic_signal, fs, exponent, knee): # test whether we can get the second exponent correctly assert bool( np.isclose( - slope_fit_k.aperiodic_params['Exponent_1'][0] + slope_fit_k.aperiodic_params['Exponent_2'][0], + slope_fit_k.aperiodic_params['Exponent_2'][0], np.abs(exponent), atol=TOLERANCE, ) @@ -67,7 +67,7 @@ def test_irasa_knee_cmb(load_knee_cmb_signal, fs, exponent, knee, osc_freq): # test whether we can get the second exponent correctly assert bool( np.isclose( - slope_fit_k.aperiodic_params['Exponent_1'][0] + slope_fit_k.aperiodic_params['Exponent_2'][0], + slope_fit_k.aperiodic_params['Exponent_2'][0], np.abs(exponent), atol=TOLERANCE, )