Skip to content

Commit

Permalink
fixed test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi committed Aug 16, 2024
1 parent 48095d0 commit cd2e484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_irasa_knee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit cd2e484

Please sign in to comment.