[英]APLpy attribute error : 'module' object has no attribute 'FITSfigure'
I have installed APLpy (version 0.9.12) & I have python 2.7. 我已经安装了APLpy(0.9.12版)&我安装了python 2.7。
I have a FITS image called "test.fits". 我有一个FITS图片,称为“ test.fits”。
I gave following commands: 我给出了以下命令:
import aplpy
fig = aplpy.FITSfigure("test.fits")
Then I got this message: 然后我得到了这个消息:
AttributeError: 'module' object has no attribute 'FITSfigure'
I got same message when I tried following: 当我尝试以下操作时,我收到了相同的消息:
fig = aplpy.aplpy.FITSfigure("test.fits")
I am new to python & APLpy. 我是python和APLpy的新手。
Your line: 您的电话:
fig = aplpy.FITSfigure("test.fits")
is spelled wrong it has to be: 拼写错误,必须是:
fig = aplpy.FITSFigure("test.fits")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.