|
| 1 | +Version 7.1.0 (2025-05-20) |
| 2 | +========================== |
| 3 | + |
| 4 | + |
| 5 | +New Features |
| 6 | +------------ |
| 7 | + |
| 8 | +astropy.coordinates |
| 9 | +^^^^^^^^^^^^^^^^^^^ |
| 10 | + |
| 11 | +- ``search_around_sky`` and ``search_around_3D`` now accept separations/distlimits |
| 12 | + broadcastable to the same shape as ``coords1``. [#17824] |
| 13 | + |
| 14 | +astropy.io.ascii |
| 15 | +^^^^^^^^^^^^^^^^ |
| 16 | + |
| 17 | +- Add functionality to read and write to a Table from the TDAT format as part of |
| 18 | + the Unified File Read/Write Interface. [#16780] |
| 19 | + |
| 20 | +- ``io.ascii`` now supports on-the-fly decompression of LZW-compressed files |
| 21 | + (typically ".Z" extension) via the optional package uncompresspy. [#17960] |
| 22 | + |
| 23 | +astropy.io.fits |
| 24 | +^^^^^^^^^^^^^^^ |
| 25 | + |
| 26 | +- Astropy can now not only read but also write headers that have ``HIERARCH`` |
| 27 | + keys with long values, by allowing the use of ``CONTINUE`` cards for those |
| 28 | + (as was already the case for regular FITS keys). [#17748] |
| 29 | + |
| 30 | +- Add ``strip_spaces`` option to ``Table.read`` to strip trailing whitespaces in |
| 31 | + string columns. This will be activated by default in the next major release. [#17777] |
| 32 | + |
| 33 | +- ``io.fits`` now supports on-the-fly decompression of LZW-compressed files |
| 34 | + (typically ".Z" extension) via the optional package uncompresspy. [#17960] |
| 35 | + |
| 36 | +- ``io.fits`` now supports on-the-fly decompression of LZMA-compressed files |
| 37 | + (typically ".xz" extension) if the lzma module is provided by the Python |
| 38 | + installation. [#17968] |
| 39 | + |
| 40 | +astropy.io.misc |
| 41 | +^^^^^^^^^^^^^^^ |
| 42 | + |
| 43 | +- Add a fast ``Table`` CSV reader that uses the PyArrow ``read_csv()`` function. This can |
| 44 | + be significantly faster and more memory-efficient than the ``astropy.io.ascii`` fast |
| 45 | + reader. This new reader can be used with ``Table.read()`` by setting |
| 46 | + ``format="pyarrow.csv"``. [#17706] |
| 47 | + |
| 48 | +astropy.io.votable |
| 49 | +^^^^^^^^^^^^^^^^^^ |
| 50 | + |
| 51 | +- New module ``astropy.io.votable.dataorigin`` to extract Data Origin information from INFO in VOTable. [#17839] |
| 52 | + |
| 53 | +- ``CooSys`` VOTable elements now have a method ``to_astropy_frame`` that returns the |
| 54 | + corresponding astropy built-in frame, when possible. [#17999] |
| 55 | + |
| 56 | +astropy.modeling |
| 57 | +^^^^^^^^^^^^^^^^ |
| 58 | + |
| 59 | +- Added a ``fit_info=`` keyword argument to ``parallel_fit_dask`` to allow users to preserve fit information from each individual fit. [#17538] |
| 60 | + |
| 61 | +astropy.nddata |
| 62 | +^^^^^^^^^^^^^^ |
| 63 | + |
| 64 | +- Adds a utility class, ``astropy.nddata.Covariance``, used to construct, access, |
| 65 | + and store covariance matrices. The class depends on use of the ``scipy.sparse`` |
| 66 | + module. [#16690] |
| 67 | + |
| 68 | +- Add the ``limit_rounding_method`` parameter to `~astropy.nddata.Cutout2D`, |
| 69 | + `~astropy.nddata.overlap_slices`, `~astropy.nddata.extract_array`, and |
| 70 | + `~astropy.nddata.add_array` to allow users to specify the rounding method |
| 71 | + used when calculating the pixel limits of the cutout. The default method |
| 72 | + is to use `~numpy.ceil`. [#17876] |
| 73 | + |
| 74 | +astropy.table |
| 75 | +^^^^^^^^^^^^^ |
| 76 | + |
| 77 | +- Document that ``Table.group_by``'s underlying sorting algorithm is guaranteed |
| 78 | + to be stable. This reflects behavior that was already present but undocumented, |
| 79 | + at least since astropy 6.0 . [#17676] |
| 80 | + |
| 81 | +astropy.timeseries |
| 82 | +^^^^^^^^^^^^^^^^^^ |
| 83 | + |
| 84 | +- Downsampling now works correctly also on ``MaskedColumn`` and |
| 85 | + ``MaskedQuantity`` with possibly masked elements. Furthermore, the type of |
| 86 | + (Masked) column will now be properly preserved in downsampling. [#18023] |
| 87 | + |
| 88 | +astropy.units |
| 89 | +^^^^^^^^^^^^^ |
| 90 | + |
| 91 | +- Units with the "micro" prefix can now be imported using ``"μ"`` in the name. |
| 92 | + For example, the microgram can now be imported with |
| 93 | + ``from astropy.units import μg``. [#17651] |
| 94 | + |
| 95 | +- It is now possible to import angström, litre and ohm from ``astropy.units`` |
| 96 | + using the ``Å``, ``ℓ`` and ``Ω`` symbols. [#17829] |
| 97 | + |
| 98 | +- Unit conversions between kelvins and degrees Rankine no longer require the |
| 99 | + ``temperature`` equivalency. [#17985] |
| 100 | + |
| 101 | +astropy.utils |
| 102 | +^^^^^^^^^^^^^ |
| 103 | + |
| 104 | +- Make commonly used Masked subclasses importable for ASDF support. |
| 105 | + |
| 106 | + Registered types associated with ASDF converters must be importable by |
| 107 | + their fully qualified name. Masked classes are dynamically created and have |
| 108 | + apparent names like ``astropy.utils.masked.core.MaskedQuantity`` although |
| 109 | + they aren't actually attributes of this module. Customize module attribute |
| 110 | + lookup so that certain commonly used Masked classes are importable. |
| 111 | + |
| 112 | + See: |
| 113 | + |
| 114 | + - https://asdf.readthedocs.io/en/latest/asdf/extending/converters.html#entry-point-performance-considerations |
| 115 | + - https://github.com/astropy/asdf-astropy/pull/253 [#17685] |
| 116 | + |
| 117 | +- ``astropy.utils.data.download_file`` can now recover from a ``TimeoutError`` |
| 118 | + when given a list of alternative source URLs. Previously, only ``URLError`` |
| 119 | + exceptions were recoverable. An exception is still being raised after trying all |
| 120 | + URLs provided if none of them could be reached. [#17691] |
| 121 | + |
| 122 | +- ``utils.data`` now supports on-the-fly decompression of LZW-compressed files |
| 123 | + (typically ".Z" extension) via the optional package uncompresspy. [#17960] |
| 124 | + |
| 125 | + |
| 126 | +API Changes |
| 127 | +----------- |
| 128 | + |
| 129 | +astropy.coordinates |
| 130 | +^^^^^^^^^^^^^^^^^^^ |
| 131 | + |
| 132 | +- On representations the method ``get_name`` has been deprecated in favor of the class-level |
| 133 | + attribute ``name``. The method will be removed in a future release. [#17503] |
| 134 | + |
| 135 | +astropy.cosmology |
| 136 | +^^^^^^^^^^^^^^^^^ |
| 137 | + |
| 138 | +- A new public module, ``astropy.cosmology.io``, has been added to provide support |
| 139 | + for reading, writing, and converting cosmology instances. |
| 140 | + |
| 141 | + The private modules ``astropy.cosmology.funcs``, |
| 142 | + ``astropy.cosmology.parameter``, ``astropy.cosmology.connect``, |
| 143 | + ``astropy.cosmology.core``, and ``astropy.cosmology.flrw`` have been deprecated. |
| 144 | + Their functionality remains accessible in the `astropy.cosmology` module or in |
| 145 | + the new ``astropy.cosmology.io`` module. [#17543] |
| 146 | + |
| 147 | +- Comoving distances now accept an optional 2nd argument, where the two-argument form is |
| 148 | + the comoving distance between two redshifts. The one-argument form is the comoving |
| 149 | + distance from redshift 0 to the input redshift. [#17701] |
| 150 | + |
| 151 | +- A new public module, ``astropy.cosmology.traits``, has been added to provide building |
| 152 | + blocks for custom cosmologies. The currently available traits are: |
| 153 | + - ``astropy.cosmology.traits.ScaleFactor`` |
| 154 | + - ``astropy.cosmology.traits.TemperatureCMB`` [#17702] |
| 155 | + |
| 156 | +astropy.extern |
| 157 | +^^^^^^^^^^^^^^ |
| 158 | + |
| 159 | +- Astropy used to bundle the javascript libraries jQuery and DataTables for |
| 160 | + interactive (e.g. sorting by column values) tables using the ``show_in_browser()`` |
| 161 | + method. |
| 162 | + This bundling requires relatively large files in astropy itself, for a relatively minor feature. |
| 163 | + Furthermore, the astropy developers are not experts in javascript development, and |
| 164 | + javascript libraries many need updates to improve on security vulnerabilities. |
| 165 | + This change removes the bundled versions of jQuery and DataTables from astropy, |
| 166 | + updates the default version of the remote URLs to version 2.1.8 of DataTables, and |
| 167 | + sets the default for ``show_in_browser(use_local_files=False)`` to use the remote versions |
| 168 | + in all cases. If the method is called with ``use_local_files=True``, a warning is |
| 169 | + displayed and remote version are used anyway. |
| 170 | + This may break the use of the method when working offline, unless the javascript |
| 171 | + files are cached by the browser from a previous online session. [#17521] |
| 172 | + |
| 173 | +astropy.table |
| 174 | +^^^^^^^^^^^^^ |
| 175 | + |
| 176 | +- ``showtable`` CLI is now deprecated to avoid a name clash on Debian; use ``showtable-astropy`` instead. [#18047] |
| 177 | + |
| 178 | +- Fix issues in the handling of a call like ``tbl.loc[item]`` or ``tbl.loc_indices[item]`` |
| 179 | + and make the behavior consistent with pandas. Here ``tbl`` is a ``Table`` or ``QTable`` |
| 180 | + with an index defined. |
| 181 | + |
| 182 | + If ``item`` is an empty list or zero-length ``np.ndarray`` or an empty slice, then |
| 183 | + previously ``tbl.loc[item]`` would raise a ``KeyError`` exception. Now it returns the |
| 184 | + zero-length table ``tbl[[]]``. |
| 185 | + |
| 186 | + If ``item`` is a one-element list like ``["foo"]``, then previously |
| 187 | + ``tbl.loc[item]`` would return either a ``Row`` or a ``Table`` with multiple row, |
| 188 | + depending on whether the index was unique. Now it always returns a ``Table``, consistent |
| 189 | + with behavior for ``tbl.loc[[]]`` and ``tbl.loc[["foo", "bar"]]``. |
| 190 | + |
| 191 | + See https://github.com/astropy/astropy/pull/18051 for more details. [#18051] |
| 192 | + |
| 193 | +astropy.units |
| 194 | +^^^^^^^^^^^^^ |
| 195 | + |
| 196 | +- Passing ``fraction='multiline'`` to ``unit.to_string()`` will no longer raise |
| 197 | + an exception if the given format does not support multiline fractions, but |
| 198 | + rather give a warning and use an inline fraction. [#17374] |
| 199 | + |
| 200 | +- Automatic conversion of a ``str`` or ``bytes`` instance to a unit when it is |
| 201 | + multiplied or divided with an existing unit or quantity is deprecated. [#17586] |
| 202 | + |
| 203 | +- Accessing the contents of the ``units.deprecated`` module now emits deprecation |
| 204 | + warnings. |
| 205 | + The module may be removed in a future version. [#17929] |
| 206 | + |
| 207 | +astropy.visualization |
| 208 | +^^^^^^^^^^^^^^^^^^^^^ |
| 209 | + |
| 210 | +- All arguments from ``simple_norm`` are marked as future keyword-only, with the |
| 211 | + exception of the first two (``data`` and ``stretch``). |
| 212 | + A warning is now displayed if any other arguments are passed positionally. [#17489] |
| 213 | + |
| 214 | + |
| 215 | +Bug Fixes |
| 216 | +--------- |
| 217 | + |
| 218 | +astropy.io.fits |
| 219 | +^^^^^^^^^^^^^^^ |
| 220 | + |
| 221 | +- Fix possible int overflow in the tile compression C code. [#17995] |
| 222 | + |
| 223 | +astropy.io.votable |
| 224 | +^^^^^^^^^^^^^^^^^^ |
| 225 | + |
| 226 | +- In ``CooSys`` elements, the system was not checked for votable version 1.5 [#17999] |
| 227 | + |
| 228 | +astropy.samp |
| 229 | +^^^^^^^^^^^^ |
| 230 | + |
| 231 | +- Fix setting logging level from the ``samp_hub`` command line. |
| 232 | + Previously, ``samp_hub --log-level OFF`` was documented as supported but actually caused an exception to be raised. |
| 233 | + The patch infers valid choices from the standard library's ``logging`` module. |
| 234 | + A ``CRITICAL`` level will closely emulate the intended ``OFF`` setting. [#17673] |
| 235 | + |
| 236 | +astropy.table |
| 237 | +^^^^^^^^^^^^^ |
| 238 | + |
| 239 | +- Initializing a Table with ``rows`` or ``data`` set to ``[]`` or a numpy array with |
| 240 | + zero size (e.g., ``np.array([[], []])``) is now equivalent to |
| 241 | + ``Table(data=None, ...)`` and creates a table with no data values. This allows |
| 242 | + defining the table names and/or dtype when creating the table, for instance: |
| 243 | + ``Table(rows=[], names=["a", "b"], dtype=[int, float])``. Previously this |
| 244 | + raised an exception. [#17717] |
| 245 | + |
| 246 | +- Fix issues in the handling of a call like ``tbl.loc[item]`` or ``tbl.loc_indices[item]`` |
| 247 | + and make the behavior consistent with pandas. Here ``tbl`` is a ``Table`` or ``QTable`` |
| 248 | + with an index defined. |
| 249 | + |
| 250 | + If ``item`` is an empty list or zero-length ``np.ndarray`` or an empty slice, then |
| 251 | + previously ``tbl.loc[item]`` would raise a ``KeyError`` exception. Now it returns the |
| 252 | + zero-length table ``tbl[[]]``. |
| 253 | + |
| 254 | + If ``item`` is a one-element list like ``["foo"]``, then previously |
| 255 | + ``tbl.loc[item]`` would return either a ``Row`` or a ``Table`` with multiple row, |
| 256 | + depending on whether the index was unique. Now it always returns a ``Table``, consistent |
| 257 | + with behavior for ``tbl.loc[[]]`` and ``tbl.loc[["foo", "bar"]]``. |
| 258 | + |
| 259 | + See https://github.com/astropy/astropy/pull/18051 for more details. [#18051] |
| 260 | + |
| 261 | +astropy.timeseries |
| 262 | +^^^^^^^^^^^^^^^^^^ |
| 263 | + |
| 264 | +- Made ``TimeSeries.from_pandas`` and ``BinnedTimeSeries.read`` more robust to |
| 265 | + subclassing. [#17351] |
| 266 | + |
| 267 | +astropy.units |
| 268 | +^^^^^^^^^^^^^ |
| 269 | + |
| 270 | +- For the Angstrom unit in the CDS module, ``u.cds.Angstrom``, the string |
| 271 | + representation is now "Angstrom" (instead of "AA"), consistent with what was |
| 272 | + always the case for ``u.Angstrom``, and conformant with the CDS standard. [#17536] |
| 273 | + |
| 274 | +- Previously the string representation of the ``solMass`` unit in the ``"cds"`` |
| 275 | + format depended on whether the unit was imported directly from ``units`` or |
| 276 | + from ``units.cds``. |
| 277 | + Although both representations were valid according to the CDS standard, the |
| 278 | + inconsistency was nonetheless needlessly surprising. |
| 279 | + The representation of ``units.cds.solMass`` has been changed to match the |
| 280 | + representation of ``units.solMass``. [#17560] |
| 281 | + |
| 282 | +- The degrees Rankine is now represented as "$\mathrm{{}^{\circ}R}$" in the |
| 283 | + ``"latex"`` and ``"latex_inline"`` formats and as "°R" in the ``"unicode"`` |
| 284 | + format. [#18049] |
| 285 | + |
| 286 | +astropy.utils |
| 287 | +^^^^^^^^^^^^^ |
| 288 | + |
| 289 | +- Properly detect invalid LZMA files in ``utils.data``. [#17984] |
| 290 | + |
| 291 | +astropy.visualization |
| 292 | +^^^^^^^^^^^^^^^^^^^^^ |
| 293 | + |
| 294 | +- Fixed an issue when using ``plot_coord`` after slicing the ``WCS`` object coordinates. [#18005] |
| 295 | + |
| 296 | + |
| 297 | +Performance Improvements |
| 298 | +------------------------ |
| 299 | + |
| 300 | +astropy.timeseries |
| 301 | +^^^^^^^^^^^^^^^^^^ |
| 302 | + |
| 303 | +- Improved the ``aggregate_downsample`` performance using a new default ``aggregate_func``. [#17574] |
| 304 | + |
| 305 | +astropy.units |
| 306 | +^^^^^^^^^^^^^ |
| 307 | + |
| 308 | +- Converting strings to units with ``Unit()`` is now up to 225% faster. [#17399] |
| 309 | + |
| 310 | +- ``UnitBase.compose()`` is now 20% faster. [#17425] |
| 311 | + |
| 312 | + |
| 313 | +Other Changes and Additions |
| 314 | +--------------------------- |
| 315 | + |
| 316 | +- After ``import astropy``, ``dir(astropy)`` will now list all subpackages, |
| 317 | + including those that have not yet been loaded. This also means tab |
| 318 | + completion will work as expected (e.g., ``from astropy.coo<TAB>`` will |
| 319 | + expand to ``from astropy.coordinates``). [#17598] |
| 320 | + |
| 321 | +- Updated bundled WCSLIB version to 8.4, fixing issues in ``wcs_chksum`` |
| 322 | + and ``wcs_fletcher32``. For a full list of changes - see |
| 323 | + ``astropy/cextern/wcslib/CHANGES``. [#17886] |
| 324 | + |
1 | 325 | Version 7.0.2 (2025-05-12) |
2 | 326 | ========================== |
3 | 327 |
|
|
0 commit comments