From 07cb1ce9b0305aa743e3a0f9280938bddeef5004 Mon Sep 17 00:00:00 2001 From: Kaze Wong Date: Tue, 7 May 2024 14:37:16 -0400 Subject: [PATCH] update astropy import --- src/jimgw/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jimgw/constants.py b/src/jimgw/constants.py index d4b20605..e102903c 100644 --- a/src/jimgw/constants.py +++ b/src/jimgw/constants.py @@ -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