Pyfits and astropy.io.fits
Closed this issue · 2 comments
fmerges commented
Hello,
I can see on the top of the file, it's importing from astropy.io the fits module, but later on in the code there are references to pyfits module, and two methods that uses it.
Shouldn't this be refactored?
Lines 121 to 130 in c1bf67a
Cheers,
Florian
montefra commented
This is more or less legacy code for the time before astropy.io.fits
exists. The get_pyfits
and set_pyfits
methods uses pyfits if found, otherwise fall back to astropy's fits.
I think that the refactoring will be to eventually remove pyfits