Skip to content
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

Replace pyfits dependency with astropy.io.fits #18

Closed
gregreen opened this issue Mar 11, 2015 · 1 comment
Closed

Replace pyfits dependency with astropy.io.fits #18

gregreen opened this issue Mar 11, 2015 · 1 comment

Comments

@gregreen
Copy link

The module pyfits has been merged into astropy, and is no longer under active development outside of astropy. For all intents and purposes, pyfits now lives at astropy.io.fits, and many users will no longer have pyfits independently installed. One solution to this problem, which I use in my own scripts, is to replace all import pyfits statements with the following:

try:
    import astropy.io.fits as pyfits
except ImportError:
    import pyfits

Could you make this change?

@gregreen
Copy link
Author

Sorry, I see you addressed issue in the branch anaconda-updates. Maybe it's time for a merge into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant