[AstroPy] patch for pywcs

Rene Breton superluminique@gmail....
Sat Oct 8 01:52:22 CDT 2011


I don't know if Michael Droettboom is still the maintainer of pywcs but I have a patch to submit for the next release. There have been major changes to pyfits 3.x compared to 2.x and hence pywcs fails to export to header properly (pywcs.WCS.to_header). I have fixed the problem. Currently, it requires a "try... except" because I haven't found an elegant way to make it compatible with both 2.x and 3.x. When pywcs moves to requiring pyfits >3.x then the exception clause could be removed.

At the same time, I've also remove the header.has_key and replaced them for "key in header" as the header.has_key spits out a DeprecationWarning.

The patch is attached.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 2887 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/astropy/attachments/20111008/906c9247/attachment.obj 

More information about the AstroPy mailing list