Skip to content

Commit

Permalink
Loosen the virial-quantities test for NFW because of uncertainty in M…
Browse files Browse the repository at this point in the history
…sun (different in different astropy versions; see #308)
  • Loading branch information
jobovy committed Jul 13, 2017
1 parent 5d298e9 commit 82ba6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ def test_NFW_virialquantities_diffrovo():
/4./numpy.pi*3.\
/np.rvir(ro=ro,vo=vo,H=H,Om=Om,overdens=overdens,wrtcrit=wrtcrit)**3.)\
*(10.**6./H**2.*8.*numpy.pi/3./Om*(4.302*10.**-6.))
assert numpy.fabs(od-overdens) < 0.01, "NFWPotential's virial quantities computed in physical units with different (ro,vo) from setup are incorrect"
assert numpy.fabs(od-overdens) < 0.1, "NFWPotential's virial quantities computed in physical units with different (ro,vo) from setup are incorrect"
od= (np.mvir(ro=ro,vo=vo,H=H,Om=Om,overdens=overdens,wrtcrit=wrtcrit,use_physical=False)\
/4./numpy.pi*3.\
/np.rvir(ro=ro,vo=vo,H=H,Om=Om,overdens=overdens,wrtcrit=wrtcrit,use_physical=False)**3.)\
Expand Down

0 comments on commit 82ba6fa

Please sign in to comment.