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() from astropy.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 accepts array_small having dimensions equal to array_large, instead of only allowing smaller sizes of arrays. [#9118]

    astropy.stats ^

    • Fixed median_absolute_deviation for the case where ignore_nan=True and an input masked array contained both NaNs and infs. [#9307]

    astropy.table ^

    • Comparisons between Column instances and Quantity 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 of LombScarge.false_alarm_probabilty. [#9246]

    astropy.units ^

    • ๐Ÿ‘ Allow conversion of Column with logarithmic units to a suitable Quantity subclass if subok=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 extension get_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 or ctype [#9151]

    • Fixed reference counting in WCSBase.__init__ [#9166]

    • Fix SlicedLowLevelWCS world_to_pixel_values and pixel_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 and WCS.pixel_bounds to be incorrect after using WCS.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]