From dd8cc1b722cab6acfe9fcba2fcdbb30e0ca7312d Mon Sep 17 00:00:00 2001 From: Adrian Price-Whelan Date: Fri, 7 Feb 2020 15:04:54 -0500 Subject: [PATCH] fix another galactocentric astropy 4.0 issue --- gala/coordinates/tests/test_greatcircle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gala/coordinates/tests/test_greatcircle.py b/gala/coordinates/tests/test_greatcircle.py index 2e8c86b8c..fd4048a41 100644 --- a/gala/coordinates/tests/test_greatcircle.py +++ b/gala/coordinates/tests/test_greatcircle.py @@ -32,9 +32,10 @@ def test_cls_init(): def test_init_center(): stupid_gal = GreatCircleICRSFrame( pole=coord.Galactic._ngp_J2000.transform_to(coord.ICRS), - center=coord.Galactocentric.galcen_coord) + center=coord.Galactocentric().galcen_coord) gal = coord.Galactic(50*u.deg, 20*u.deg) gal2 = gal.transform_to(stupid_gal) + assert np.isclose(gal.l.degree, gal2.phi1.degree) assert np.isclose(gal.b.degree, gal2.phi2.degree)