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
In [21]: TimeDelta(1*u.day, scale='tai') < Time('J2000')
Out[21]: True
The reason this fails is that the comparisons first try to get both arguments to the same class and scale, and this works when it wasn't expected to work:
In [35]: Time(TimeDelta(1<<u.day, scale='tt'))
Out[35]: <TimeDelta object: scale='tt' format='jd' value=1.0>
It is not completely obvious whether generically a superclass passing back a subclass unchanged is OK, but for Time is shouldn't happen!
Activity
mhvk commentedon Oct 6, 2020
fixed in current master (by #10656, I think)