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 asfloat
instead ofstr
. [#9918]๐ Fixed a segmentation fault in the
fast_reader
C parsers when parsing an invalid file withguess=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 tofits.Column
and extended tests forTFORM
andTDISP
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
andImageHDU
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 (likeSkyCoord
) 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 likeTime
andSkyCoord
. [#10068]
astropy.time ^
๐ Fix inaccuracy when converting between TimeDelta and datetime.timedelta. [#9679]
๐ Fixed exception when changing
format
in the case whenout_subfmt
is defined and is incompatible with the new format. [#9812]๐ Fixed exceptions in
Time.to_value()
: when supplying anysubfmt
argument for string-based formats like 'iso', and forsubfmt='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 existingTime
or list ofTime
objects. [#9969]๐ Fixed a bug where an exception occurred when creating a
Time
object if theval1
argument was a regular double and theval2
argument was alongdouble
. [#10034]
astropy.timeseries
- ๐ Fixed issue with reference time for the
transit_time
parameter returned by theBoxLeastSquares
periodogram. Now, thetransit_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 ifNone
is contained (e.g. Enum as of python3.8), by instead checking for instance of Sequence. [#9948]๐ Fix for
u.Quantity
not taking into accountndmin
if constructed from anotheru.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 thenmin_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]
- ๐ Fixed a bug where importing a development version of a package that uses