Skip to content

Commit

Permalink
Updated test_hydrogen.py to match bug correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ladsantos committed Dec 5, 2022
1 parent 94c9bb3 commit b99d689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_hydrogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def test_ion_fraction_spectrum(precision_threshold=1E-5):
average_f_ion,
spectrum_at_planet=spectrum,
relax_solution=True)
assert abs((f_r[-1] - 0.997857) / f_r[-1]) < precision_threshold
assert abs((f_r[-1] - 0.998826) / f_r[-1]) < precision_threshold

# Test the exact photoionization
f_r = hydrogen.ion_fraction(r, R_pl, T_0, h_fraction, m_dot, M_pl,
average_f_ion,
spectrum_at_planet=spectrum,
relax_solution=True, exact_phi=True)
assert abs((f_r[-1] - 0.997883) / f_r[-1]) < precision_threshold
assert abs((f_r[-1] - 0.998997) / f_r[-1]) < precision_threshold

0 comments on commit b99d689

Please sign in to comment.