astropy v0.4.2 Release Notes

Release Date: 2014-09-23 // over 9 years ago
  • ๐Ÿ› Bug Fixes

    astropy.coordinates

    • Angle accepts hours:mins or deg:mins initializers (without seconds). In these cases float minutes are also accepted.

    • The repr for coordinate frames now displays the frame attributes (ex: ra, dec) in a consistent order. It should be noted that as part of this fix, the BaseCoordinateFrame.get_frame_attr_names() method now returns an OrderedDict instead of just a dict. [#2845]

    astropy.io.fits ^

    • ๐Ÿ›  Fixed a crash when reading scaled float data out of a FITS file that was loaded from a string (using HDUList.fromfile) rather than from a file. [#2710]

    • ๐Ÿ›  Fixed a crash when reading data from an HDU whose header contained in invalid value for the BLANK keyword (e.g., a string value instead of an integer as required by the FITS Standard). Invalid BLANK keywords are now warned about, but are otherwise ignored. [#2711]

    • ๐Ÿ›  Fixed a crash when reading the header of a tile-compressed HDU if that header contained invalid duplicate keywords resulting in a KeyError [#2750]

    • ๐Ÿ›  Fixed crash when reading gzip-compressed FITS tables through the Astropy Table interface. [#2783]

    • ๐Ÿ›  Fixed corruption when writing new FITS files through to gzipped files. [#2794]

    • ๐Ÿ›  Fixed crash when writing HDUs made with non-contiguous data arrays to file-like objects. [#2794]

    • It is now possible to create astropy.io.fits.BinTableHDU objects with a table with zero rows. [#2916]

    astropy.io.misc ^

    • ๐Ÿ›  Fixed a bug that prevented h5py Dataset objects from being automatically recognized by Table.read. [#2831]

    astropy.modeling ^

    • ๐Ÿ‘‰ Make LevMarLSQFitter work with weights keyword. [#2900]

    astropy.table ^

    • ๐Ÿ›  Fixed reference cycle in tables that could prevent Table objects from being freed from memory. [#2879]

    • ๐Ÿ›  Fixed an issue where Table.pprint() did not print the header to stdout when stdout is redirected (say, to a file). [#2878]

    • ๐Ÿ›  Fixed printing of masked values when a format is specified. [#1026]

    • Ensured that numpy ufuncs that return booleans return plain ndarray instances, just like the comparison operators. [#2963]

    astropy.time ^

    • Ensure bigendian input to Time works on a little-endian machine (and vice versa). [#2942]

    astropy.units ^

    • Ensure unit is kept when adding 0 to quantities. [#2968]

    astropy.utils ^

    • ๐Ÿ›  Fixed color printing on Windows with IPython 2.0. [#2878]

    astropy.vo ^

    • ๐Ÿ‘Œ Improved error message on Cone Search time out. [#2687]

    Other Changes and Additions

    • ๐Ÿ›  Fixed a couple issues with files being inappropriately included and/or excluded from the source archive distributions of Astropy. [#2843, #2854]

    • As part of fixing the fact that masked elements of table columns could not be printed when a format was specified, the column format string options were expanded to allow simple specifiers such as '5.2f'. [#2898]

    • ๐Ÿ‘ Ensure numpy 1.9 is supported. [#2917]

    • ๐Ÿ‘ Ensure numpy master is supported, by making np.cbrt work with quantities. [#2937]