-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using astropy in lieu of pyfits #7
Comments
I think pull #6 must have broken it. We'll look into it. |
Actually, looking at PR #6, I think it was intended to fix this exact bug. So once that makes it into a release that gets into pip, I think this will be resolved. |
I have pushed version 3.8.0, which includes PR #6, to pypi. |
Thanks. The original issue we were having is fixed with this update. Thanks very much for the quick response. I'm having a separate issue with SIP files, but I'll open a new issue for that one. Closing this now. |
The latest version of starlink has a bug in the
FitsChan
implementation when used in conjunction withastropy.io.fits
(importedas pyfits
):So, since I have
astropy
as well aspyfits
, starlink doesimport astropy.io.fits as pyfits
(which is fine with me -- it's what we do in GalSim too). Butastropy.io.fits
doesn't have a__version__
attribute. In GalSim, we get around this problem with the following code:Then we just use
pyfits_version
whenever we want to conditionally do different actions depending on the "pyfits" version. You might want to do something similar here.For cross-reference, this issue was originally posted by a GalSim user @beckermr here.
The text was updated successfully, but these errors were encountered: