astropy v0.2.2 Release Notes

Release Date: 2013-05-21 // almost 11 years ago
  • ๐Ÿ› Bug Fixes

    astropy.io ^

    • ๐Ÿ›  Fixed issues in both the fits and votable sub-packages where array byte order was not being handled consistently, leading to possible crashes especially on big-endian systems. [#1003]

    astropy.io.fits ^

    • ๐Ÿ‘ป When an error occurs opening a file in fitsdiff the exception message will now at least mention which file had the error.

    • ๐Ÿ›  Fixed a couple cases where creating a new table using TDIMn in some of the columns could cause a crash.

    • ๐Ÿ”จ 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 astropy.io.fits.getdata convenience function caused an exception, and allows the VLA data to be read from an existing mmap of the FITS file.

    • ๐Ÿ›  Fixed a bug on Python 3 where attempting to open a non-existent file on Python 3 caused a seemingly unrelated traceback.

    • ๐Ÿ›  Fixed an issue in the tests that caused some tests to fail if Astropy is installed with read-only permissions.

    • ๐Ÿ›  Fixed a bug where instantiating a BinTableHDU from a numpy array containing boolean fields converted all the values to False.

    • ๐Ÿ›  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.

    • ๐Ÿ›  Fixed inconsistent behavior in creating CONTINUE cards from byte strings versus unicode strings in Python 2--CONTINUE cards can now be created properly from unicode strings (so long as they are convertable to ASCII).

    • ๐Ÿ›  Fixed a bug in parsing HIERARCH keywords that do not have a space after the first equals sign (before the value).

    • Prevented extra leading whitespace on HIERARCH keywords from being treated as part of the keyword.

    • ๐Ÿ›  Fixed a bug where HIERARCH keywords containing lower-case letters was mistakenly marked as invalid during header validation along with an ancillary issue where the Header.index() method id not work correctly with HIERARCH keywords containing lower-case letters.

    • Disallowed assigning NaN and Inf floating point values as header values, since the FITS standard does not define a way to represent them in. Because this is undefined, the previous behavior did not make sense and produced invalid FITS files. [#954]

    • ๐Ÿ›  Fixed an obscure issue that can occur on systems that don't have flush to memory-mapped files implemented (namely GNU Hurd). [#968]

    astropy.io.votable

    • ๐Ÿ“ฆ Stopped deprecation warnings from the astropy.io.votable package that could occur during setup. [#970]

    • ๐Ÿ›  Fixed an issue where INFO elements were being incorrectly dropped when occurring inside a TABLE element. [#1000]

    • ๐Ÿ›  Fixed obscure test failures on MIPS platforms. [#1010]

    astropy.nddata.convolution

    • ๐Ÿ›  Fixed an issue in make_kernel() when using an Airy function kernel. Also removed the superfluous 'brickwall' option. [#939]

    astropy.table ^

    • ๐Ÿ›  Fixed a crash that could occur when adding a row to an empty (rowless) table with masked columns. [#973]

    • Made it possible to assign to one table row from the value of another row, effectively making it easier to copy rows, for example. [#1019]

    astropy.time ^

    • Added appropriate __copy__ and __deepcopy__ behavior; this omission caused a seemingly unrelated error in FK5 coordinate separation. [#891]

    astropy.units ^

    • ๐Ÿ›  Fixed an issue where the isiterable() utility returned True for quantities with scalar values. Added an __iter__ method for the Quantity class and fixed isiterable() to catch false positives. [#878]

    • ๐Ÿ›  Fixed previously undefined behavior when multiplying a unit by a string. [#949]

    • โž• Added 'time' as a physical type--this was a simple omission. [#959]

    • ๐Ÿ›  Fixed issues with pickling unit objects so as to play nicer with the multiprocessing module. [#974]

    • Made it more difficult to accidentally override existing units with a new unit of the same name. [#1070]

    • โž• Added several more physical types and units that were previously omitted, including 'mass density', 'specific volume', 'molar volume', 'momentum', 'angular momentum', 'angular speed', 'angular acceleration', 'electric current', 'electric current density', 'electric field strength', 'electric flux density', 'electric charge density', 'permittivity', 'electromagnetic field strength', 'radiant intensity', 'data quantity', 'bandwidth'; and 'knots', 'nautical miles', 'becquerels', and 'curies' respectively. [#1072]

    Misc ^

    • ๐Ÿ›  Fixed a permission error that could occur when running astropy.test() on Python 3 when Astropy is installed as root. [#811]

    • โš  Made it easier to filter warnings from the convolve() function and from Quantity objects. [#853]

    • ๐Ÿ›  Fixed a crash that could occur in Python 3 when generation of the default config file fails during setup. [#952]

    • ๐Ÿ›  Fixed an unrelated error message that could occur when trying to import astropy from a source checkout without having build the extension modules first. This issue was claimed to be fixed in v0.2.1, but the fix itself had a bug. [#971]

    • ๐Ÿ›  Fixed a crash that could occur when running the build_sphinx setup command in Python 3. [#977]

    • โž• Added a more helpful error message when trying to run the setup.py build_sphinx command when Sphinx is not installed. [#1027]

    • ๐Ÿ“š Minor documentation fixes and restructuring. [#935, #967, #978, #1004, #1028, #1047]

    Other Changes and Additions

    • ๐ŸŽ Some performance improvements to the astropy.units package, in particular improving the time it takes to import the sub-package. [#1015]