TESScience / SPyFFI

Spiffy Python for TESS Full Frame Images
MIT License
6 stars 7 forks source link

New Astropy Broken #7

Open xcthulhu opened 8 years ago

xcthulhu commented 8 years ago

SPyFFI works with astropy 1.1.2, but for version 1.2.1 the following line throws an error:

https://github.com/TESScience/SPyFFI/blob/4c8c3a38f50a2d82cd4b73844ec1f0caa3a1eecb/Cartographer.py#L261-261

gal = astropy.coordinates.ICRS(ra=self.ra, dec=self.dec, unit=(astropy.units.deg,astropy.units.deg)).galactic

Throws

TypeError: lon should be a Quantity, Angle, or Longitude