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
from astropy.coordinates import SkyCoord, Angle, Distance
import astropy.units as u
from astropy.time import Time
import lightkurve as lk
from lightkurve import *
epoch = Time(1569.4424277786259, scale="tdb", format="btjd")
equinox = Time(2000, format="jyear", scale="tt")
c = SkyCoord(
ra=194.10778581007 * u.deg,
dec=-27.41053258397 * u.deg,
pm_ra_cosdec=-16.908 * u.mas/u.year,
pm_dec=3.894* u.mas/u.year,
frame="icrs",
obstime=equinox,
)
c1 = c.apply_space_motion(new_obstime=epoch)
I am finding the same behavior. ErfaWarning: ERFA function "pmsafe" yielded 1 of "distance overridden (Note 6)" warnings.warn('ERFA function "{}" yielded {}'.format(func_name, wmsg),
Description
When
SkyCoord.apply_space_motion()
for a coordinate without distance specified, astropy emits the following warning:The warning happened on the latest
main
. It was also on 4.1 releaseThe issue seems to be related to Behaviour of apply_space_motion without distance without a distance #10092. But it appears that the resolution of Behaviour of apply_space_motion without distance without a distance #10092 does not make the warnings go away. The codes now just emit a different (albeit more comprehensible) warning.
In jupyter, it emits two warnings that refer to the same problems:
Expected behavior
The warning should not be there.
Steps to Reproduce
Running it will yield the following warning in
apply_space_motion()
call:System Details
Windows-10-10.0.19041-SP0
Python 3.7.10 (default, Feb 26 2021, 13:06:18) [MSC v.1916 64 bit (AMD64)]
Numpy 1.20.2
astropy 4.3.dev1543+ga371a5903
Scipy 1.6.3
Matplotlib 3.4.1
erfa 1.7.3
The text was updated successfully, but these errors were encountered: