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 the log, it s the same failure for all three cases and, If I m correct, the reason is astropy/6.0.0.
And, actually, in astropy/5.2.1, there is a WARNING, saying that the considered call won t be supported in the future.
e.g.:
this works fine with astropy/5.2.1 (but raises a WARNING):
import astropy
astropy.__version__
# => '5.2.1'
from astropy import units as u
from desisurvey import utils
t = astropy.time.Time('2020-01-01')
o = utils.get_observer(t, alt=90 * u.deg, az=0 * u.deg)
o.__class__, astropy.coordinates.ICRS.__class__
# => (<class 'astropy.coordinates.builtin_frames.altaz.AltAz'>, <class 'abc.ABCMeta'>)
o.transform_to(astropy.coordinates.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]
<ICRS Coordinate: (ra, dec) in deg
(348.28121199, 31.85415575)>
but fails with astropy/6.0.0 (same error than what s reported in the unit tests log):
import astropy
astropy.__version__
# => '6.0.0'
from astropy import units as u
from desisurvey import utils
t = astropy.time.Time('2020-01-01')
o = utils.get_observer(t, alt=90 * u.deg, az=0 * u.deg)
o.__class__, astropy.coordinates.ICRS.__class__
# => (<class 'astropy.coordinates.builtin_frames.altaz.AltAz'>, <class 'abc.ABCMeta'>)
o.transform_to(astropy.coordinates.ICRS)
# =>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/global/common/software/desi/perlmutter/desiconda/20240322-2.2.0/conda/lib/python3.10/site-packages/astropy/coordinates/baseframe.py", line 1272, in transform_to
raise ConvertError(msg.format(self.__class__, new_frame.__class__))
astropy.coordinates.errors.ConvertError: Cannot transform from <class 'astropy.coordinates.builtin_frames.altaz.AltAz'> to <class 'abc.ABCMeta'>
@schlafly , @weaverba137 : I m not super-familiar with those subtleties, so it would be great if you can have a look at that; thanks!
if useful:
one can load astropy/6.0.0 with source /global/cfs/cdirs/desi/software/desi_environment.sh test-main
Unit tests for the jura production currently fail:
From the log, it s the same failure for all three cases and, If I m correct, the reason is astropy/6.0.0.
And, actually, in astropy/5.2.1, there is a
WARNING
, saying that the considered call won t be supported in the future.e.g.:
this works fine with astropy/5.2.1 (but raises a
WARNING
):but fails with astropy/6.0.0 (same error than what s reported in the unit tests log):
@schlafly , @weaverba137 : I m not super-familiar with those subtleties, so it would be great if you can have a look at that; thanks!
if useful:
source /global/cfs/cdirs/desi/software/desi_environment.sh test-main
The text was updated successfully, but these errors were encountered: