astropy v0.4.3 Release Notes

Release Date: 2015-01-15 // over 9 years ago
  • ๐Ÿ› Bug Fixes

    astropy.coordinates

    • ๐Ÿ—„ The Distance class has been fixed to no longer rely on the deprecated cosmology functions. [#2991]

    • Ensure float32 values can be used in coordinate representations. [#2983]

    • ๐Ÿ›  Fix frame attribute inheritance in SkyCoord.transform_to() method so that the default attribute value (e.g. equinox) for the destination frame gets used if no corresponding value was explicitly specified. [#3106]

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

    • astropy.coordinates.SkyCoord objects are now copyable. [#2888]

    • astropy.coordinates.SkyCoord object attributes are now immutable. It is still technically possible to change the internal data for an array-valued coordinate object but this leads to inconsistencies [#2889] and should not be done. [#2888]

    astropy.cosmology

    • The ztol keyword argument to z_at_value now works correctly [#2993].

    astropy.io.ascii ^

    • ๐Ÿ›  Fix a bug in Python 3 when guessing file format using a file object as input. Also improve performance in same situation for Python 2. [#3132]

    • ๐Ÿ›  Fix a problem where URL was being downloaded for each guess. [#2001]

    astropy.io.fits ^

    • The in operator now works correctly for checking if an extension is in an HDUList (as given via EXTNAME, (EXTNAME, EXTVER) tuples, etc.) [#3060]

    • โž• Added workaround for bug in MacOS X <= 10.8 that caused np.fromfile to fail. [#3078]

    • โž• Added support for the RICE_ONE compression type synonym. [#3115]

    astropy.modeling ^

    • ๐Ÿ›  Fixed a test failure on Debian/PowerPC and Debian/s390x. [#2708]

    • ๐Ÿ›  Fixed crash in evaluating models that have more outputs than inputs--this case may not be handled as desired for all conceivable models of this format (some may have to implement custom prepare_inputs and prepare_outputs methods). But as long as all outputs can be assumed to have a shape determined from the broadcast of all inputs with all parameters then this can be used safely. [#3250]

    astropy.table ^

    • ๐Ÿ›  Fix a bug that caused join to fail for multi-dimensional columns. [#2984]

    • ๐Ÿ›  Fix a bug where MaskedColumn attributes which had been changed since the object was created were not being carried through when slicing. [#3023]

    • ๐Ÿ›  Fix a bug that prevented initializing a table from a structured array with multi-dimensional columns with copy=True. [#3034]

    • ๐Ÿ›  Fixed unnecessarily large unicode columns when instantiating a table from row data on Python 3. [#3052]

    • ๐Ÿ‘Œ Improved the warning message when unable to aggregate non-numeric columns. [#2700]

    astropy.units ^

    • Operations on quantities with incompatible types now raises a much more informative TypeError. [#2934]

    • Quantity.tolist now overrides the ndarray method to give a NotImplementedError (by renaming the previous list method). [#3050]

    • Quantity.round now always returns a Quantity (previously it returned an ndarray for decimals>0). [#3062]

    • Ensured np.squeeze always returns a Quantity (it only worked if no dimensions were removed). [#3045]

    • Input to Quantity with a unit attribute no longer can get mangled with copy=False. [#3051]

    • Remove trailing space in __format__ calls for dimensionless quantities. [#3097]

    • Comparisons between units and non-unit-like objects now works correctly. [#3108]

    • Units with fractional powers are now correctly multiplied together by using rational arithmetic. [#3121]

    • โœ‚ Removed a few entries from spectral density equivalencies which did not make sense. [#3153]

    astropy.utils ^

    • ๐Ÿ›  Fixed an issue with the deprecated decorator on classes that invoke super() in their __init__ method. [#3004]

    • ๐Ÿ›  Fixed a bug which caused the metadata_conflicts parameter to be ignored in the astropy.utils.metadata.merge function. [#3294]

    astropy.vo ^

    • ๐Ÿ›  Fixed an issue with reconnecting to a SAMP Hub. [#2674]

    astropy.wcs ^

    • Invalid or out of range values passed to wcs_world2pix will now be correctly identified and returned as nan values. [#2965]

    • ๐Ÿ›  Fixed an issue which meant that Python thought WCS objects were iterable. [#3066]

    Misc ^

    • Astropy will now work if your Python interpreter does not have the bz2 module installed. [#3104]

    • ๐Ÿ›  Fixed ResourceWarning for astropy/extern/bundled/six.py that could occur sometimes after using Astropy in Python 3.4. [#3156]

    Other Changes and Additions

    astropy.coordinates

    • ๐Ÿ‘Œ Improved the agreement of the FK5 <-> Galactic conversion with other codes, and with the FK5 <-> FK4 <-> Galactic route. [#3107]