Path to this page:
Subject: CVS commit: pkgsrc/math/py-astropy
From: Adam Ciarcinski
Date: 2025-02-07 08:29:15
Message id: 20250207072915.B91CDFBE0@cvs.NetBSD.org
Log Message:
py-astropy: updated to 7.0.1
Version 7.0.1 (2025-02-06)
API Changes
astropy.table
- The use of the keyword ``use_local_files`` for the js viewer in
``astropy.table.Table.show_in_browser`` is now deprecated. Starting in Astropy
7.1 this keyword will be ignored and use of it will issue a warning. The
default behavior will be to use the remote versions of jQuery and DataTables
from a CDN.
Bug Fixes
astropy.config
^^^^^^^^^^^^^^
- With ``astropy`` v7.0.0 the cache directory cannot be customized with the
``XDG_CACHE_HOME`` environment variable.
Instead, ``XDG_CONFIG_HOME`` erroneously controls both configuration and cache
directories.
The correct pre-v7.0.0 behaviour has been restored, but it is possible that
``astropy`` v7.0.0 has written cache files to surprising locations.
Concerned users can use the ``get_cache_dir_path()`` function to check where
the cache files are written.
The bug in question does not affect systems where the ``XDG_CACHE_HOME`` and
``XDG_CONFIG_HOME`` environment variables are unset.
astropy.coordinates
- Fixed a numerical-precision bug with the calculation of the ``theta``
component when converting from ``CylindricalRepresentation`` to
``PhysicsSphericalRepresentation`` for vectors very close to the Z axis (within
milliarcseconds).
astropy.io.ascii
- Fixed parsing ASCII table with data that starts with a tilda.
- Find and read ASCII tables even if there is white space before
``\begin{tabular}``, ``\tablehead``, and similar markers.
astropy.io.fits
- Fix memory leak in ```BinTableHDU.copy()```
- Fix overflow error with Numpy 2 and VLA columns using P format.
- Fix ``ImageHDU.scale`` with float.
- Fixed ``Table.write(..., format="fits", overwrite=True)`` when \
filename is
provided as ``pathlib.Path``.
astropy.io.votable
- Updated XML writer for ``VOTableFile`` element to include or drop
``coordinate_systems`` regardless of version.
astropy.modeling
- Fix fitting of compound models when inputs has more than one dimension, and
specifically fix fitting of compound models with Polynomial2D components
astropy.table
- Ensure that representations and differentials, like SkyCoord, can be used in
table join operations, by making use of the fact that they can now be masked.
- Fix a crash in ``Table.show_in_browser`` due to an internal type inconsistency.
- Fix incorrect description of the ``unique`` parameter in ``Table.add_index``'s
docstring. Add missing Raises section.
astropy.units
- Ensure that ``Unit.to`` allows as ``value`` argument all array types that
follow the array API standard and define ``__array_namespace__``. Furthermore,
for backwards compatibility, generally pass through arguments that define a
``.dtype``, independent of whether that is a numpy data type.
- The zebi (Zi, 2^70) and yobi (Yi, 2^80) binary prefixes are now supported.
astropy.visualization
- Fix ``CoordinateHelper.ticklabels``. The getter was incorrectly returning
the helper's ticks rather than the labels.
- The following private classes from ``astropy.visualization.lupton_rgb``, that
were dropped without deprecation in astropy 7.0.0, were re-introduced following
a report that they were used downstream. The following classes are now
considered public:
- ``Mapping``
- ``AsinhMapping``
- ``LinearMapping``
- ``AsinhZScaleMapping``
Other Changes and Additions
- Update bundled js library datatables to version 2.1.8, which is current at the \
time of this PR.
Files: