Download latest PDF - Read the Docs

Transcript
PyFITS Documentation, Release 3.4.dev
– The Header.rename_key method. Use Header.rename_keyword instead.
– The Header.get_history method. Use header[’HISTORY’] instead (normal keyword lookup).
– The Header.get_comment method. Use header[’COMMENT’] instead.
– The Header.toTxtFile method. Use header.totextfile instead.
– The Header.fromTxtFile method. Use Header.fromtextfile instead.
– The pyfits.tdump and tcreate functions. Use pyfits.tabledump and pyfits.tableload
respectively.
– The BinTableHDU.tdump and
BinTableHDU.load respectively.
tcreate
methods.
Use
BinTableHDU.dump
and
– The txtfile argument to the Header constructor. Use Header.fromfile instead.
– The startColumn and endColumn arguments to the FITS_record constructor. These are unlikely
to be used by any user code.
These deprecated interfaces will be removed from the development version of PyFITS following the v3.3 release
(they will still be available in any v3.3.x bugfix releases, however).
Other Changes and Additions
• PyFITS has switched to a unified code base which supports Python 2.5 through 3.4 simultaneously without translation. This shouldn’t have any significant performance impacts, but please report if anything seems noticeably
slower. As a reminder, support for Python 2.5 will be ended after PyFITS 3.3.x.
• Warnings for deprecated APIs in PyFITS are now always displayed by default. This is in line with a similar
change made recently to Astropy: https://github.com/astropy/astropy/pull/1871 To disable PyFITS deprecation
warnings in scripts one may call pyfits.ignore_deprecation_warnings() after importing PyFITS.
• Card objects have a new is_blank attribute which returns True if the card represents a blank card (no
keyword, value, or comment) and False otherwise.
Bug Fixes
• Fixed a regression where it was not possible to save an empty “compressed” image to a file (in this case there is
nothing to compress, hence the quotes, but trying to do so caused a crash). (spacetelescope/PyFITS#69)
• Fixed a regression that may have been introduced in v3.2.1 with writing compressed image HDUs, particularly
compressed images using a non-empty GZIP_COMPRESSED_DATA column. (spacetelescope/#71)
3.2.5 (unreleased)
• Nothing changed yet.
3.1.7 (unreleased)
• Nothing changed yet.
3.2.4 (2014-06-02)
• Fixed a regression where multiple consecutive calls of the writeto method on the same HDU but to different
files could lead to corrupt data or crashes on the subsequent calls after the first. (spacetelescope/PyFITS#40)
58
Chapter 1. Introduction