astronomy-python icon indicating copy to clipboard operation
astronomy-python copied to clipboard

Warning from gala.coordinates

Open HannoSpreeuw opened this issue 2 years ago • 2 comments

Executing commands from the beginning of Coordinate Transformations:

from gala.coordinates import GD1Koposov10

gd1_frame = GD1Koposov10()
gd1_frame

gives

WARNING: AstropyDeprecationWarning: The matrix_product function is deprecated and may be removed in a future version.
        Use @ instead. [gala.coordinates.sgr]
WARNING: AstropyDeprecationWarning: The matrix_product function is deprecated and may be removed in a future version.
        Use @ instead. [gala.coordinates.orphan]
WARNING: AstropyDeprecationWarning: The matrix_product function is deprecated and may be removed in a future version.
        Use @ instead. [gala.coordinates.magellanic_stream]

HannoSpreeuw avatar Mar 13 '23 15:03 HannoSpreeuw

Solution possible from #193 : do not import from gala at all. Instead complete the exercise by executing:

origin_gd1 = SkyCoord(0*u.degree, 0*u.degree, frame='gd1koposov10')
origin_gd1.transform_to('icrs')

HannoSpreeuw avatar Mar 13 '23 15:03 HannoSpreeuw

I'll check if this warning persists with the most recent version of gala

abostroem avatar Dec 30 '23 02:12 abostroem