astropy.io.fits does not work properly under Python 3 -
i have code:
from astropy.io import fits filename = tkinter.filedialog.askopenfilename() file = fits.open(filename)
when trying run under python 2.7, works fine. under python 3.4 there problem:
warning: exception occurred matching hdu header appropriate hdu type: [astropy.io.fits.hdu.base] warning: hdu treated corrupted. [astropy.io.fits.hdu.base]
after warning, i'm unable perform operations on file. ideas how handle problem?
Comments
Post a Comment