astropy v3.2.2 Release Notes
Release Date: 2019-10-07 // over 4 years ago-
๐ Bug fixes
astropy.convolution
Fixed a bug in
discretize_oversample_1D/2D()
fromastropy.convolution.utils
, which might occasionally introduce unexpected oversampling grid dimensions due to a numerical precision issue. [#9293]๐ Fixed a bug [#9168] where having a kernel defined using unitless astropy quantity objects would result in a crash [#9300]
astropy.coordinates
๐ Fix concatenation of representations for cases where the units were different. [#8877]
๐ Check for NaN values in catalog and match coordinates before building and querying the
KDTree
for coordinate matching. [#9007]๐ Fix sky coordinate matching when a dimensionless distance is provided. [#9008]
Raise a faster and more meaningful error message when differential data units are not compatible with a containing representation's units. [#9064]
๐ Changed the timescale in ICRS to CIRS from 'tdb' to 'tt' conversion and vice-versa, as the erfa function that gets called in the process, pnm06a accepts time in TT. [#9079]
astropy.io.ascii ^
- ๐ Fixed the fast reader when used in parallel and with the multiprocessing 'spawn' method (which is the default on MacOS X with Python 3.8 and later), and enable parallel fast reader on Windows. [#8853]
astropy.io.fits ^
๐ Fixes bug where an invalid TRPOS keyword was being generated for FITS time column when no location was available. [#8784]
๐ Fixed a wrong exception when converting a Table with a unit that is not FITS compliant and not convertible to a string using
format='fits'
. [#8906]๐ Fixed an issue with A3DTABLE extension that could not be read. [#9012]
๐ Fixed the update of the header when creating GroupsHDU from data. [#9216]
astropy.nddata ^
- Fix to
add_array
, which now acceptsarray_small
having dimensions equal toarray_large
, instead of only allowing smaller sizes of arrays. [#9118]
astropy.stats ^
- Fixed
median_absolute_deviation
for the case whereignore_nan=True
and an input masked array contained both NaNs and infs. [#9307]
astropy.table ^
- Comparisons between
Column
instances andQuantity
will now correctly take into account the unit (as was already the case for regular operations such as addition). [#8904]
astropy.time ^
๐ Allow
Time
to be initialized with an empty value for all formats. [#8854]๐ Fixed a troubling bug in which
Time
could loose precision, with deviations of 300 ns. [#9328]
astropy.timeseries
- ๐ Fixed handling of
Quantity
input data for all methods ofLombScarge.false_alarm_probabilty
. [#9246]
astropy.units ^
๐ Allow conversion of
Column
with logarithmic units to a suitableQuantity
subclass ifsubok=True
. [#9188]Ensured that we simplify powers to smaller denominators if that is consistent within rounding precision. [#9267]
Ensured that the powers shown in a unit's repr are always correct, not oversimplified. [#9267]
astropy.utils ^
Fixed
find_api_page
access by using custom request headers and HTTPS when version is specified. [#9032]Make
download_file
(and by extensionget_readable_fileobj
and others) check the size of downloaded files against the size claimed by the server. [#9302]Fix
find_current_module
so that it works properly if astropy is being used inside a bundle such as that produced by PyInstaller. [#8845]๐ Fix path to renamed classes, which previously included duplicate path/module information under certain circumstances. [#8845]
astropy.visualization
- โ Silence numpy runtime warnings in
WCSAxes
when drawing grids. [#8882]
astropy.wcs ^
๐ Fixed equality test between
cunit
where the first element was equal but the following elements differed. [#9154]๐ Fixed a crash while loading a WCS from headers containing duplicate SIP keywords. [#8893]
๐ Fixed a possible buffer overflow when using too large negative indices for
cunit
orctype
[#9151]Fixed reference counting in
WCSBase.__init__
[#9166]Fix
SlicedLowLevelWCS
world_to_pixel_values
andpixel_to_world_values
when inputs need broadcasting to the same shape. (i.e. when one input is sliced out) [#9250]Fixed a bug that caused
WCS.array_shape
,WCS.pixel_shape
andWCS.pixel_bounds
to be incorrect after usingWCS.sub
. [#9095]
Other Changes and Additions
- ๐ Fixed a bug that caused files outside of the astropy module directory to be included as package data, resulting in some cases in errors when doing repeated builds. [#9039]