pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-astropy



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed May 14 14:40:55 UTC 2025

Modified Files:
        pkgsrc/math/py-astropy: Makefile distinfo

Log Message:
py-astropy: updated to 7.0.2

Version 7.0.2 (2025-05-12)

Bug Fixes

astropy.config

- Fix a bug where config file generation did not parse nested subclasses of ``astropy.config.ConfigNamespace``.

astropy.io.fits

- Fix a bug in ``nddata.Cutout2D`` when creating partial cutouts of ``Section`` objects by adding a ``dtype`` property to the ``Section`` class.

- Fixed a bug so that now the scaling state from the source HDU to the new appended HDU is copied on the
  destination file, when the HDU is read with ``do_not_scale_image_data=True``.

- Fix setting a slice on table rows (``FITS_record``).

- Fix checksum computation for tables with VLA columns, when table is loaded in
  memory.

- Fix ``.fileinfo()`` for compressed HDUs.

- Fix FITS_rec repr when a column has scaling factors, leading to a crash with
  numpy>=2.0.

- Fixed a bug that caused THEAP, ZBLANK, ZSCALE, and ZZERO to not be correctly
  removed during decompression of tile-compressed FITS files.

astropy.io.votable

- ``astropy`` v7.0.0 erroneously refused to write a VOTable if it contained units that
  could not be represented in the CDS format.
  Now ``astropy`` correctly chooses the unit format based on the VOTable version.
  The bug in question did not cause any corruption in tables that were successfully
  written because the newer VOUnit format is backwards compatible with the CDS format.
  Furthermore, any unit that is in neither formats would still be written out
  but would issue a warning.

- ``unicodeChar`` fields can now be of bounded variable size (``arraysize="10*``).

astropy.modeling

- Fixed an issue where the ``filter_non_finite`` option was not working
  for 2D models. An error is raised when the ``filter_non_finite`` option
  is set to ``True`` and all values are non-finite.

astropy.stats

- Now ``bayesian_blocks(t, x, fitness="events")`` correctly handles the case
  when the input data ``x`` contains zeros.

astropy.table

- Prevent corrupting a column by mutating its name to an invalid type.
  A ``TypeError`` is now raised when a name is set to anything other than a
  string.

- Fix a bug in creating a ``Table`` from a list of rows that dropped the units
  of non-scalar Quantity, e.g., ``Table(rows=[([1] * u.m,), ([2] * u.m,)])``.

astropy.units

- Ensured that the units of ``yp``, ``refa`` and ``refb`` are properly
  taken into account when calling ``erfa.apio`` (previously, the
  conversion required for ``xp`` was applied to those inputs too).

- The machinery that injects units into a namespace (used e.g. by ``def_unit()``)
  now applies NFKC normalization to unit names when checking for name collisions.
  This prevents name collisions if the namespace belongs to a module and the unit
  is accessed as an attribute of that module.

- The string representations of the prefixed versions of ``solLum``, ``solMass``
  and ``solRad`` units can now be parsed by default.
  Previously they could only be parsed if the ``required_by_vounit`` module had
  been imported, possibly indirectly by using the ``"vounit"`` format.

astropy.utils

- Prevent corrupting a mixin column's ``info`` attribute by mutating its name to
  an invalid type. A ``TypeError`` is now raised when a name is set to anything
  other than a string.

astropy.visualization

- Ensure that the ``astropy.visualization.wcsaxes.custom_ucd_coord_meta_mapping``
  context manager performs a (correct) cleanup.

- Fixed interval classes for masked input (``MaskedArray`` and ``MaskedNDArray``).

- Fixed the limits of ``a`` parameter in the ``PowerDistStretch``
  and ``InvertedPowerDistStretch`` classes so that a value of
  0 in no longer allowed. That value gives infinity values in
  ``InvertedPowerDistStretch`` and it makes the ``PowerDistStretch``
  results independent of the input data.

- Fixed an issue where LinearStretch values were not being clipped to
  [0:1] when ``clip=True``.

astropy.wcs

- Fix UCD for air wavelengths, following the IVOA recommendation that ``'em.wl'``
  be reserved for vacuum wavelengths. ``'em.wl;obs.atmos'`` is now used to
  represent air wavelengths instead.

Other Changes and Additions

- Updated the bundled CFITSIO library to 4.6.0.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/math/py-astropy/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/math/py-astropy/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-astropy/Makefile
diff -u pkgsrc/math/py-astropy/Makefile:1.22 pkgsrc/math/py-astropy/Makefile:1.23
--- pkgsrc/math/py-astropy/Makefile:1.22        Tue Apr 15 16:31:37 2025
+++ pkgsrc/math/py-astropy/Makefile     Wed May 14 14:40:55 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2025/04/15 16:31:37 adam Exp $
+# $NetBSD: Makefile,v 1.23 2025/05/14 14:40:55 adam Exp $
 
-DISTNAME=      astropy-7.0.1
+DISTNAME=      astropy-7.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/astropy/}
 

Index: pkgsrc/math/py-astropy/distinfo
diff -u pkgsrc/math/py-astropy/distinfo:1.13 pkgsrc/math/py-astropy/distinfo:1.14
--- pkgsrc/math/py-astropy/distinfo:1.13        Fri Feb  7 07:29:15 2025
+++ pkgsrc/math/py-astropy/distinfo     Wed May 14 14:40:55 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2025/02/07 07:29:15 adam Exp $
+$NetBSD: distinfo,v 1.14 2025/05/14 14:40:55 adam Exp $
 
-BLAKE2s (astropy-7.0.1.tar.gz) = b1526f6efcce19d9199322bb3025818b66c81260506c759023d216abf65716f4
-SHA512 (astropy-7.0.1.tar.gz) = b2bb012a42edc99d981c6f67ec92d4b926418d86a4efee7563f35d291afedd70170a517dba833e7004fa34392ed824778f17e8a70503158ff83082229f8f67b3
-Size (astropy-7.0.1.tar.gz) = 7139539 bytes
+BLAKE2s (astropy-7.0.2.tar.gz) = 4ba34dff06aa4bee6416597a9db5dd5d2d05d192d192fb65ca655d0230805b6e
+SHA512 (astropy-7.0.2.tar.gz) = 0547532b88d8fc219feed76dfa124deae0407421ae02923cd26a26557f3139cefe36dd5773a02a9a907063f6ffb34c47af10208ff9d242188e0777e2501ec3a3
+Size (astropy-7.0.2.tar.gz) = 7149131 bytes



Home | Main Index | Thread Index | Old Index