Skip to content

Commit

Permalink
Use assert_allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 authored Oct 26, 2023
1 parent da056af commit 52f8aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyccl/tests/test_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def test_input_nonlinear_model():

pk_CCL_input = ccl.power.nonlin_matter_power(cosmo_input, k_arr, 0.5)

assert np.allclose(pk_CCL_input, pk_CCL, atol=0., rtol=1e-8)
#assert np.allclose(pk_CCL_input, pk_CCL, atol=0., rtol=1e-8)
np.testing.assert_allclose(pk_CCL_input, pk_CCL, atol=0., rtol=1e-8)

# Test extra power spectrum
kl_arr = np.logspace(-4, 1, 1000)
Expand Down

0 comments on commit 52f8aa1

Please sign in to comment.