Skip to content

Commit

Permalink
test: more reasonable checks on the power spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Dec 21, 2023
1 parent 68b5757 commit cd81e83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_integration_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def test_power_spectra_coeval(name, module_direc, plt):
np.testing.assert_allclose(
value / test_powers[key].max(),
test_powers[key] / test_powers[key].max(),
atol=1e-8,
atol=1e-4,
rtol=0,
)


Expand Down Expand Up @@ -125,7 +126,8 @@ def test_power_spectra_lightcone(name, module_direc, plt):
np.testing.assert_allclose(
value / test_powers[key].max(),
test_powers[key] / test_powers[key].max(),
atol=1e-8,
atol=1e-4,
rtol=0,
)
# assert np.all(np.abs(value - test_powers[key]) / value[0] < 1e-3)
# assert np.sum(~np.isclose(value, test_powers[key], atol=0, rtol=5e-2)) < 10
Expand Down

0 comments on commit cd81e83

Please sign in to comment.