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 anHDUList
(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
andprepare_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 thendarray
method to give aNotImplementedError
(by renaming the previouslist
method). [#3050]Quantity.round
now always returns aQuantity
(previously it returned anndarray
fordecimals>0
). [#3062]Ensured
np.squeeze
always returns aQuantity
(it only worked if no dimensions were removed). [#3045]Input to
Quantity
with aunit
attribute no longer can get mangled withcopy=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 invokesuper()
in their__init__
method. [#3004]๐ Fixed a bug which caused the
metadata_conflicts
parameter to be ignored in theastropy.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 asnan
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
forastropy/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]