You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest_blackbody_synphot():
"""Test that it is consistent with IRAF SYNPHOT BBFUNC."""# Solid angle of solar radius at 1 kpcfac=np.pi* (const.R_sun/const.kpc) **2*u.srwithnp.errstate(all='ignore'):
flux=blackbody_nu([100, 1, 1000, 1e4, 1e5] *u.AA, 5000) *facassertflux.unit==FNU# Special check for overflow value (SYNPHOT gives 0)assertnp.log10(flux[0].value) <-143np.testing.assert_allclose(
flux.value[1:], [0, 2.01950807e-34, 3.78584515e-26, 1.90431881e-27],
rtol=0.01) # 1% accuracy
This test will not run for the refactored BlackBody code after astropy/astropy#9282 is merged.
The text was updated successfully, but these errors were encountered:
https://github.com/astropy/astropy/blob/09b7796bbd4eadc793bb48fc5c8554bb5bd4af0d/astropy/modeling/tests/test_blackbody.py#L97-L111
This test will not run for the refactored
BlackBody
code after astropy/astropy#9282 is merged.The text was updated successfully, but these errors were encountered: