astropy v4.0.5 Release Notes
Release Date: 2021-03-26 // about 3 years ago-
๐ Bug Fixes
astropy.io.fits ^
๐ Fix bug where manual fixes to invalid header cards were not preserved when saving a FITS file. [#11108]
๐ Fix parsing of RVKC header card patterns that were not recognised where multiple spaces were separating field-specifier and value like "DP1.AXIS.1: 1". [#11301]
๐ Fix misleading missing END card error when extra data are found at the end of the file. [#11285]
๐ Fix incorrect wrapping of long card values as CONTINUE cards when some words in the value are longer than a single card. [#11304]
astropy.io.misc ^
- ๐ Fixed problem when writing serialized metadata to HDF5 using h5py >= 3.0. With the newer h5py this was writing the metadata table as a variable-length string array instead of the previous fixed-length bytes array. Fixed astropy to force using a fixed-length bytes array. [#11359]
astropy.modeling ^
- ๐ Change
Voigt1D
function to use Humlicek's approximation to avoid serious inaccuracies + option to use (compiled)scipy.special.wofz
error function for yet more accurate results. [#11177]
astropy.table ^
๐ Fixed bug when initializing a
Table
with a column as list ofQuantity
, for exampleTable({'x': [1*u.m, 2*u.m]})
. Previously this resulted in anobject
dtype with no columnunit
set, but now gives a float array with the correct unit. [#11329]๐ Fixed byteorder conversion in
to_pandas()
, which had incorrectly triggered swapping when native endianness was stored with explicitdtype
code'<'
(or'>'
) instead of'='
. [#11288, #11294]๐ Fixed a compatibility issue with numpy 1.21. Initializing a Table with a column like
['str', np.ma.masked]
was failing in tests due to a change in numpy. [#11364]๐ Fixed bug when validating the inputs to
table.hstack
,table.vstack
, andtable.dstack
. Previously, mistakenly callingtable.hstack(t1, t2)
(instead oftable.hstack([t1, t2]))
would returnt1
instead of raising an exception. [#11336]๐ Fixed byteorder conversion in
to_pandas()
, which had incorrectly triggered swapping when native endianness was stored with explicitdtype
code'<'
(or'>'
) instead of'='
. [#11288]
astropy.time ^
๐ Fix leap second update when using a non english locale. [#11062]
๐ Fix default assumed location to be the geocenter when transforming times to and from solar-system barycenter scales. [#11134]
๐ Fix inability to write masked times with
formatted_value
. [#11195]
astropy.units ^
Ensure
keepdims
works for takingmean
,std
, andvar
ofQuantity
. [#11198]For
Quantity.to_string()
, ensure that the precision argument is also used when the format is not latex. [#11145]
astropy.wcs ^
- ๐ Allow "un-setting" of auxiliary WCS parameters in the
aux
attribute ofWcsprm
. [#11166]