Skip to content

Commit

Permalink
update astropy import
Browse files Browse the repository at this point in the history
  • Loading branch information
kazewong committed May 7, 2024
1 parent 815d756 commit 07cb1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jimgw/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from astropy.constants import c, pc # type: ignore TODO: fix astropy stubs
from astropy.units import year as yr
import astropy.units as u # type: ignore

Msun = 4.9255e-6
year = (1 * yr).cgs.value # type: ignore
year = (1 * u.yr).cgs.value # type: ignore
Mpc = 1e6 * pc.value / c.value
euler_gamma = 0.577215664901532860606512090082
MR_sun = 1.476625061404649406193430731479084713e3
Expand Down

0 comments on commit 07cb1ce

Please sign in to comment.