astropy v2.0.9 Release Notes
Release Date: 2018-10-14 // over 5 years ago-
๐ Bug Fixes
astropy.io.ascii ^
- ๐ Fix reading of big files with the fast reader. [#7885]
astropy.io.fits ^
HDUList.__contains__()
now works withHDU
arguments. That is,hdulist[0] in hdulist
now works as expected. [#7282]HDUList
s can now be written to streams in Python 3 [#7850]
astropy.nddata ^
- ๐ Fixed the bug in CCData.read when the HDU is not specified and the first one is empty so the function searches for the first HDU with data which may not have an image extension. [#7739]
astropy.stats ^
- ๐ Fixed bugs in biweight statistics functions where a constant data array (or if using the axis keyword, constant along an axis) would return NaN. [#7737]
astropy.table ^
- ๐ Fixed a bug in
to_pandas()
where integer type masked columns were always getting converted to float. This could cause loss of precision. Now this only occurs if there are actually masked data values, in which casepandas
does require the values to be float so thatNaN
can be used to mark the masked values. [#7741, #7747]
โ astropy.tests ^
- ๐ Change the name of the configuration variable controlling the location of the
Astropy cache in the Pytest plugin from
cache_dir
toastropy_cache_dir
. The command line flag also changed to--astropy-cache-dir
. This prevents a conflict with thecache_dir
variable provided by pytest itself. Also made similar change toconfig_dir
option as a precaution. [#7721]
astropy.units ^
UnrecognizedUnit
instances can now be compared to any other object without raisingTypeError
. [#7606]
astropy.visualization
๐ Fix compatibility with Matplotlib 3.0. [#7839]
๐ Fix an issue that caused a crash when using WCSAxes with a custom Transform object and when using
grid_type='contours'
to plot a grid. [#7846]
astropy.wcs ^
Instead of raising an error
astropy.wcs
now returns the input when the input has zero size. [#7746]Fix
malloc(0)
bug inpipeline_all_pixel2world()
andpipeline_pix2foc()
. They now raise an exception for input with zero coordinates, i.e. shape = (0, n). [#7806]๐ Fixed an issue with scalar input when WCS.naxis is one. [#7858]
Other Changes and Additions
- Added a new
astropy.__citation__
attribute which gives a citation for Astropy in bibtex format. Made sure that both this andastropy.__bibtex__
works outside the source environment, too. [#7718]