On Nov 18, 2006, at 12:27 AM, Cygnus X-1 wrote:

Have you opened the file?  Which version of pyFITS?

Consider:
   fimg=pyfits.open(datafile)
   self.header=fimg[0].header
   self.image=fimg[0].data

Tom

I found that installing the latest version of pyfits solved the problem.
Seems like there was a mismatch between my version of numpy
and pyfits. Anyways it works just fine now :)

Tommy
[EMAIL PROTECTED]
http://homepage.mac.com/tgrav/

"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genious -- and a lot of courage --
to move in the opposite direction"
                         -- Albert Einstein


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to