You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running tests locally with astropy 4.2 gives me this error on collection:
________________________________________________ERRORcollectinglib/python3.9/site-packages/specutils/tests/test_spectral_axis.py________________________________________________lib/python3.9/site-packages/specutils/tests/test_spectral_axis.py:71: in<module>LSRD.transform_to(ICRS), # different frame/opt/lib/python3.9/site-packages/astropy/coordinates/baseframe.py:1207: intransform_towarnings.warn("Transforming a frame instance to a frame class (as opposed to another "Eastropy.utils.exceptions.AstropyDeprecationWarning: Transformingaframeinstancetoaframeclass (asopposedtoanotherframeinstance) willnotbesupportedinthefuture. Eitherexplicitlyinstantiatethetargetframe, orfirstconvertthesourceframeinstancetoa`astropy.coordinates.SkyCoord`anduseits`transform_to()`method.
I could not see how the error is getting ignored in the CI *dev job, but got rid of the warning by changing to either SkyCoord(LSRD).transform_to(ICRS) or LSRD.transform_to(ICRS()) (analogously to LSRD_DIR_STATIONARY.transform_to(ICRS())).
WARNING: AstropyDeprecationWarning: Transforming a frame instance to a frame class (as opposed to another frame instance) will not be supported in the future. Either explicitly instantiate the target frame, or first convert the source frame instance to a `astropy.coordinates.SkyCoord` and use its `transform_to()` method. [astropy.coordinates.baseframe]
WARNING:astropy:AstropyDeprecationWarning: Transforming a frame instance to a frame class (as opposed to another frame instance) will not be supported in the future. Either explicitly instantiate the target frame, or first convert the source frame instance to a `astropy.coordinates.SkyCoord` and use its `transform_to()` method.
@gully which specutils and astropy versions did you see this with?
I only ever saw the DeprecationWarning in the tests, not with the above example; neither in astropy 4.3rc1 nor 5.0.dev.
Or have you somehow set a higher warning level in your environment?
Activity
gully commentedon Mar 23, 2021
Similar warning message here in the basic usage:
yields:
dhomeier commentedon Jun 23, 2021
@gully which specutils and astropy versions did you see this with?
I only ever saw the DeprecationWarning in the tests, not with the above example; neither in astropy 4.3rc1 nor 5.0.dev.
Or have you somehow set a higher warning level in your environment?
dhomeier commentedon Jun 29, 2021
Fixed by #836