0

I have installed APLpy (version 0.9.12) & I have python 2.7.

I have a FITS image called "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.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
atom
  • 153
  • 1
  • 9
  • Always include the *full traceback* in your questions. In this case I could have used that to pinpoint exactly what file you need to rename to avoid masking the module you wanted to use. – Martijn Pieters Sep 29 '14 at 08:47

1 Answers1

1

Your line:

fig = aplpy.FITSfigure("test.fits")

is spelled wrong it has to be:

fig = aplpy.FITSFigure("test.fits")
Vincent Beltman
  • 2,064
  • 13
  • 27