Download latest PDF - Read the Docs

Transcript
PyFITS Documentation, Release 3.4.dev
[ 1515.,
1507.,
1504., ...,
1492.,
1498.,
1487.]], dtype=float32)
• Enhanced the message generated when a ValueError exception is raised when attempting to access a header card
with an unparsable value. The message now includes the Card name.
The following bugs were fixed:
• Corrected a bug that occurs when appending a binary table HDU to a fits file. Data was not being byteswapped
on little endian machines. (CNSHD737243)
• Corrected a bug that occurs when trying to write an ImageHDU that is missing the required PCOUNT card in the
header. An UnboundLocalError exception complaining that the local variable ‘insert_pos’ was referenced before
assignment was being raised in the method _ValidHDU.req_cards. The code was modified so that it would
properly issue a more meaningful ValueError exception with a description of what required card is missing in
the header.
• Eliminated a redundant warning message about the PCOUNT card when validating an ImageHDU header with
a PCOUNT card that is missing or has a value other than 0.
1.4.1 (2008-11-04)
Updates described in this release are only supported in the NUMPY version of pyfits.
The following enhancements were made:
• Enhanced the way import errors are reported to provide more information.
The following bugs were fixed:
• Corrected a bug that occurs when a card value is a string and contains a colon but is not a record-valued keyword
card.
• Corrected a bug where pyfits fails to properly handle a record-valued keyword card with values using exponential
notation and trailing blanks.
1.4 (2008-07-07)
Updates described in this release are only supported in the NUMPY version of pyfits.
The following enhancements were made:
• Added support for file objects and file like objects.
– All convenience functions and class methods that take a file name will now also accept a file object or file
like object. File like objects supported are StringIO and GzipFile objects. Other file like objects will work
only if they implement all of the standard file object methods.
– For the most part, file or file like objects may be either opened or closed at function call. An opened object
must be opened with the proper mode depending on the function or method called. Whenever possible, if
the object is opened before the method is called, it will remain open after the call. This will not be possible
when writing a HDUList that has been resized or when writing to a GzipFile object regardless of whether
it is resized. If the object is closed at the time of the function call, only the name from the object is used,
not the object itself. The pyfits code will extract the file name used by the object and use that to create an
underlying file object on which the function will be performed.
• Added support for record-valued keyword cards as introduced in the “FITS WCS Paper IV proposal for representing a more general distortion model”.
– Record-valued keyword cards are string-valued cards where the string is interpreted as a definition giving
a record field name, and its floating point value. In a FITS header they have the following syntax:
keyword= 'field-specifier: float'
1.8. Other Information
87