astropy v1.0.2 Release Notes
Release Date: 2015-04-16 // almost 9 years ago-
🆕 New Features
astropy.modeling ^
- ➕ Added support for polynomials with degree 0 or degree greater than 15. [#3574, 3589]
🐛 Bug Fixes
astropy.config ^
- 🔧 The pre-astropy-0.4 configuration API has been fixed. It was inadvertently broken in 1.0.1. [#3627]
astropy.io.fits ^
🛠 Fixed a severe memory leak that occurred when reading tile compressed images. [#3680]
🛠 Fixed bug where column data could be unintentionally byte-swapped when copying data from an existing FITS file to a new FITS table with a TDIMn keyword for that column. [#3561]
The
ColDefs.change_attrib
,ColDefs.change_name
, andColDefs.change_unit
methods now work as advertised. It is also possible (and preferable) to update attributes directly onColumn
objects (for example settingcolumn.name
), and the change will be accurately reflected in any associated table data and its FITS header. [#3283, #1539, #2618]🛠 Fixes an issue with the
FITS_rec
interface to FITS table data, where aFITS_rec
created by copying an existing FITS table but adding new rows could not be sliced or masked correctly. [#3641]🛠 Fixed handling of BINTABLE with TDIMn of size 1. [#3580]
astropy.io.votable
- Loading a
TABLE
element without anyDATA
now correctly creates a 0-row array. [#3636]
astropy.modeling ^
➕ Added workaround to support inverses on compound models when one of the sub-models is itself a compound model with a manually-assigned custom inverse. [#3542]
🛠 Fixed instantiation of polynomial models with constraints for parameters (constraints could still be assigned after instantiation, but not during). [#3606]
🛠 Fixed fitting of 2D polynomial models with the
LeVMarLSQFitter
. [#3606]
astropy.table ^
Ensure
QTable
can be pickled [#3590]Some corner cases when instantiating an
astropy.table.Table
with a Numpy array are handled [#3637]. Notably:a zero-length array is the same as passing
None
a scalar raises a
ValueError
a one-dimensional array is treated as a single row of a table.
Ensure a
Column
without units is treated as anarray
, not as an dimensionlessQuantity
. [#3648]
astropy.units ^
Ensure equivalencies that do more than just scale a
Quantity
are properly handled also inufunc
evaluations. [#2496, #3586]The LaTeX representation of the Angstrom unit has changed from
\overset{\circ}{A}
to\mathring{A}
, which should have better support across regular LaTeX, MathJax and matplotlib (as of version 1.5) [#3617]
astropy.vo ^
- Using HTTPS/SSL for communication between SAMP hubs now works correctly on all supported versions of Python [#3613]
astropy.wcs ^
- When no
relax
argument is passed toWCS.to_header()
and the result omits non-standard WCS keywords, a warning is emitted. [#3652]
Other Changes and Additions
astropy.vo ^
The number of retries for connections in
astropy.vo.samp
can now be configured by an_retries
configuration option. [#3612]✅ Testing
✅ Running
astropy.test()
from within the IPython prompt has been provisionally re-enabled. [#3184]