Download latest PDF - Read the Docs

Transcript
PyFITS Documentation, Release 3.4.dev
to some legacy code preventing full gzip support. Backported from 3.1.2. (#195)
• Added a more helpful error message in the case of malformatted FITS files that contain non-float NULL values
in an ASCII table but are missing the required TNULLn keywords in the header. Backported from 3.1.2. (#197)
• Fixed an (apparently long-standing) issue where writing compressed images did not correctly write the TFORMn
keywords for variable-length array columns (they ommitted the max array length parameter of the format).
Backported from 3.1.2. (#199)
• Slightly refactored how tables containing variable-length array columns are handled to add two improvements:
Fixes an issue where accessing the data after a call to the pyfits.getdata convenience function caused an
exception, and allows the VLA data to be read from an existing mmap of the FITS file. Backported from 3.1.2.
(#200)
• Fixed a bug that could occur when opening a table containing multi-dimensional columns (i.e. via the TDIMn
keyword) and then writing it out to a new file. Backported from 3.1.2. (#201)
• Fixed a bug on Python 3 where attempting to open a non-existent file on Python 3 caused a seemingly unrelated
traceback. Backported from 3.1.2. (#203)
• Fixed a bug in fitsdiff that reported two header keywords containing NaN as value as different. Backported from
3.1.2. (#204)
• Fixed an issue in the tests that caused some tests to fail if pyfits is installed with read-only permissions. Backported from 3.1.2. (#208)
• Fixed a bug where instantiating a BinTableHDU from a numpy array containing boolean fields converted all
the values to False. Backported from 3.1.2. (#215)
• Fixed an issue where passing an array of integers into the constructor of Column() when the column type is
floats of the same byte width caused the column array to become garbled. Backported from 3.1.2. (#218)
• Fixed a couple cases where creating a new table using TDIMn in some of the columns could caused a crash.
Backported from 3.1.2. (spacetelescope/PyFITS#3)
3.1.1 (2013-01-02)
This is a bug fix release for the 3.1.x series.
Bug Fixes
• Improved handling of scaled images and pseudo-unsigned integer images in compressed image HDUs. They
now work more transparently like normal image HDUs with support for the do_not_scale_image_data
and uint options, as well as scale_back and save_backup. The .scale() method works better too.
(#88)
• Permits non-string values for the EXTNAME keyword when reading in a file, rather than throwing an exception
due to the malformatting. Added verification for the format of the EXTNAME keyword when writing. (#96)
• Added support for EXTNAME and EXTVER in PRIMARY HDUs. That is, if EXTNAME is specified in the
header, it will also be reflected in the .name attribute and in pyfits.info(). These keywords used to be
verboten in PRIMARY HDUs, but the latest version of the FITS standard allows them. (#151)
• HCOMPRESS can again be used to compress data cubes (and higher-dimensional arrays) so long as the tile
size is effectively 2-dimensional. In fact, PyFITS will automatically use compatible tile sizes even if they’re not
explicitly specified. (#171)
• Added support for the optional endcard parameter in the Header.fromtextfile() and
Header.totextfile() methods. Although endcard=False was a reasonable default assumption, there
are still text dumps of FITS headers that include the END card, so this should have been more flexible. (#176)
• Fixed a crash when running fitsdiff on two empty (that is, zero row) tables. (#178)
1.8. Other Information
65