Skip to content

Commit

Permalink
fix another galactocentric astropy 4.0 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Feb 7, 2020
1 parent 005228d commit dd8cc1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gala/coordinates/tests/test_greatcircle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dd8cc1b

Please sign in to comment.