astropy.io.fits在Python 3下无法正常工作

时间:2015-04-25 09:14:03

标签: python fits astropy

我有这段代码:

from astropy.io import fits

filename = tkinter.filedialog.askopenfilename()
file = fits.open(filename)

尝试在Python 2.7下运行时,一切正常。但是在Python 3.4下存在这个问题:

WARNING: An exception occurred matching an HDU header to the appropriate HDU type:  [astropy.io.fits.hdu.base] 
WARNING: The HDU will be treated as corrupted. [astropy.io.fits.hdu.base]

发出此警告后,我无法对我的文件执行操作。任何想法如何处理这个问题?

0 个答案:

没有答案