astropy v4.0.1 Release Notes

Release Date: 2020-03-27 // about 4 years ago
  • ๐Ÿ› Bug fixes

    astropy.config ^

    • ๐Ÿ›  Fixed a bug where importing a development version of a package that uses astropy configuration system can result in a ~/.astropy/config/package..cfg file. [#9975]

    astropy.coordinates

    • ๐Ÿ›  Fixed a bug where a vestigal trace of a frame class could persist in the transformation graph even after the removal of all transformations involving that frame class. [#9815]

    • ๐Ÿ›  Fixed a bug with TransformGraph.remove_transform() when the "from" and "to" frame classes are not explicitly specified. [#9815]

    • Read-only longitudes can now be passed in to EarthLocation even if they include angles outside of the range of -180 to 180 degrees. [#9900]

    • SkyCoord.radial_velocity_correction no longer raises an Exception when space motion information is present on the SkyCoord. [#9980]

    astropy.io ^

    • ๐Ÿ›  Fixed a bug that prevented the unified I/O infrastructure from working with datasets that are represented by directories rather than files. [#9866]

    astropy.io.ascii ^

    • ๐Ÿ›  Fixed a bug in the fast_reader C parsers incorrectly returning entries of isolated positive/negative signs as float instead of str. [#9918]

    • ๐Ÿ›  Fixed a segmentation fault in the fast_reader C parsers when parsing an invalid file with guess=True and the file contains inconsistent column numbers in combination with a quoted field; e.g., "1 2\n 3 4 '5'". [#9923]

    • Magnitude, decibel, and dex can now be stored in ecsv files. [#9933]

    astropy.io.misc ^

    • Magnitude, decibel, and dex can now be stored in hdf5 files. [#9933]

    • ๐Ÿ›  Fixed serialization of polynomial models to include non default values of domain and window values. [#9956, #9961]

    • ๐Ÿ›  Fixed a bug which affected overwriting tables within hdf5 files. Overwriting an existing path with associated column meta data now also overwrites the meta data associated with the table. [#9950]

    • ๐Ÿ›  Fixed serialization of Time objects with location under time-1.0.0 ASDF schema. [#9983]

    astropy.io.fits ^

    • ๐Ÿ›  Fix regression with GroupsHDU which needs to modify the header to handle invalid headers, and fix accessing .data for empty HDU. [#9711, #9934]

    • ๐Ÿ›  Fix fitsdiff when its arguments are directories that contain other directories. [#9711]

    • ๐Ÿ›  Fix writing noncontiguous data to a compressed HDU. [#9958]

    • โž• Added verification of disp (TDISP) keyword to fits.Column and extended tests for TFORM and TDISP validation. [#9978]

    • ๐Ÿ›  Fix checksum verification to process all HDUs instead of only the first one because of the lazy loading feature. [#10012]

    • ๐Ÿ‘ Allow passing output_verify to .close when using the context manager. [#10030]

    • Prevent instantiation of PrimaryHDU and ImageHDU with a scalar. [#10041]

    • ๐Ÿ›  Fix column access by attribute with FITS_rec: columns with scaling or columns from ASCII tables where not properly converted when accessed by attribute name. [#10069]

    astropy.io.misc ^

    • Magnitude, decibel, and dex can now be stored in hdf5 files. [#9933]

    • ๐Ÿ›  Fixed serialization of polynomial models to include non default values of domain and window values. [#9956, #9961]

    • ๐Ÿ›  Fixed a bug which affected overwriting tables within hdf5 files. Overwriting an existing path with associated column meta data now also overwrites the meta data associated with the table. [#9950]

    • ๐Ÿ›  Fixed serialization of Time objects with location under time-1.0.0 ASDF schema. [#9983]

    astropy.modeling ^

    • ๐Ÿ›  Fixed a bug in setting default values of parameters of orthonormal polynomials when constructing a model set. [#9987]

    astropy.table ^

    • ๐Ÿ›  Fixed bug in Table.reverse for tables that contain non-mutable mixin columns (like SkyCoord) for which in-place item update is not allowed. [#9839]

    • Tables containing Magnitude, decibel, and dex columns can now be saved to ecsv files. [#9933]

    • ๐Ÿ›  Fixed bug where adding or inserting a row fails on a table with an index defined on a column that is not the first one. [#10027]

    • Ensured that table.show_in_browser also worked for mixin columns like Time and SkyCoord. [#10068]

    astropy.time ^

    • ๐Ÿ›  Fix inaccuracy when converting between TimeDelta and datetime.timedelta. [#9679]

    • ๐Ÿ›  Fixed exception when changing format in the case when out_subfmt is defined and is incompatible with the new format. [#9812]

    • ๐Ÿ›  Fixed exceptions in Time.to_value(): when supplying any subfmt argument for string-based formats like 'iso', and for subfmt='long' for the formats 'byear', 'jyear', and 'decimalyear'. [#9812]

    • ๐Ÿ›  Fixed bug where the location attribute was lost when creating a new Time object from an existing Time or list of Time objects. [#9969]

    • ๐Ÿ›  Fixed a bug where an exception occurred when creating a Time object if the val1 argument was a regular double and the val2 argument was a longdouble. [#10034]

    astropy.timeseries

    • ๐Ÿ›  Fixed issue with reference time for the transit_time parameter returned by the BoxLeastSquares periodogram. Now, the transit_time will be within the range of the input data and arbitrary time offsets/zero points no longer affect results. [#10013]

    astropy.units ^

    • ๐Ÿ›  Fix for quantity_input annotation raising an exception on iterable types that don't define a general __contains__ for checking if None is contained (e.g. Enum as of python3.8), by instead checking for instance of Sequence. [#9948]

    • ๐Ÿ›  Fix for u.Quantity not taking into account ndmin if constructed from another u.Quantity instance with different but convertible unit [#10066]

    astropy.utils ^

    • ๐Ÿ“‡ Fixed deprecated_renamed_argument not passing in user value to deprecated keyword when the keyword has no new name. [#9981]

    • ๐Ÿ“‡ Fixed deprecated_renamed_argument not issuing a deprecation warning when deprecated keyword without new name is passed in as positional argument. [#9985]

    • ๐Ÿ›  Fixed detection of read-only filesystems in the caching code. [#10007]

    astropy.visualization

    • ๐Ÿ›  Fixed bug from matplotlib >=3.1 where an empty Quantity array is sent for unit conversion as an empty list. [#9848]

    • ๐Ÿ›  Fix bug in ZScaleInterval to return the array minimum and maximum when there are less then min_npixels in the input array. [#9913]

    • ๐Ÿ›  Fix a bug in simplifying axis labels that affected non-rectangular frames. [#8004, #9991]

    Other Changes and Additions

    • Increase minimum asdf version to 2.5.2. [#9996, #9819]

    • โšก๏ธ Updated bundled version of WCSLIB to v7.2. [#10021]