[Debian-astro-maintainers] Bug#868115: gwcs broken with astropy 2.0

Ole Streicher olebole at debian.org
Wed Jul 12 07:15:27 UTC 2017


Package: gwcs
Version: 0.7-1
Severity: serious
Control: block 868113 by -1

Hi,

gwcs does not work woth the latest astropy update to 2.0. From the CI
log
<https://ci.debian.net/data/autopkgtest/unstable/amd64/g/gwcs/20170711_075125/log.gz>

=================================== FAILURES
===================================
____________________________ test_from_fiducial_sky
____________________________

    def test_from_fiducial_sky():
        sky = coord.SkyCoord(1.63 * u.radian, -72.4 * u.deg, frame='fk5')
        tan = models.Pix2Sky_TAN()
>       w = wcs_from_fiducial(sky, projection=tan)

/usr/lib/python3/dist-packages/gwcs/tests/test_wcs.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/gwcs/wcstools.py:62: in wcs_from_fiducial
    fiducial_transform = _sky_transform(fiducial, projection)
/usr/lib/python3/dist-packages/gwcs/wcstools.py:112: in _sky_transform
    sky_rotation = models.RotateNative2Celestial(lon, lat, lon_pole)
/usr/lib/python3/dist-packages/astropy/modeling/rotations.py:231: in
__init__
    super(RotateNative2Celestial, self).__init__(lon, lat, lon_pole,
**kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

self = <[AttributeError("lon") raised in repr()] RotateNative2Celestial
object at 0x7f4499dd52e8>
lon = <Longitude 93.39212060632418 deg>, lat = <Latitude -72.4 deg>
lon_pole = 180, kwargs = {}, qs = [True, True, False]

    def __init__(self, lon, lat, lon_pole, **kwargs):
        qs = [isinstance(par, u.Quantity) for par in [lon, lat, lon_pole]]
        if any(qs) and not all(qs):
>           raise TypeError("All parameters should be of the same type -
float or Quantity.")
E           TypeError: All parameters should be of the same type - float
or Quantity.

Best regards

Ole



More information about the Debian-astro-maintainers mailing list