The NetBSD Project

CVS log for pkgsrc/math/py-photutils/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / math / py-photutils

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Oct 20 06:13:09 2026 UTC (3 weeks, 6 days ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +283 -22 lines
py-photutils: updated to 3.1.1

3.1.1 (2026-10-16)

General

- Importing the top-level ``photutils`` package and subpackages is now
  faster.

Bug Fixes

- ``photutils.aperture``

  - Fixed the ``to_pixel`` methods of ``SkyEllipticalAperture``,
    ``SkyEllipticalAnnulus``, ``SkyRectangularAperture``, and
    ``SkyRectangularAnnulus`` for an aperture whose position frame
    differs from the WCS celestial frame (e.g., ICRS positions with a
    Galactic WCS). The rotation angle ``theta`` is again measured in
    the frame of the aperture position.

API Changes

- ``photutils.aperture``

  - Restored the ``photutils.aperture.stats.DEFAULT_COLUMNS`` constant,
    which was removed in 3.1.0 without a deprecation period. It contains
    the 3.0 default columns, which do not include the ``flags`` column.
    It is now deprecated and will be removed in version 4.0. Use the
    ``ApertureStats.default_columns`` attribute instead.

- ``photutils.segmentation``

  - Restored the ``photutils.segmentation.catalog.DEFAULT_COLUMNS``
    constant, which was removed in 3.1.0 without a deprecation period.
    It contains the 3.0 default columns, which do not include the
    ``flags`` column. It is now deprecated and will be removed in
    version 4.0. Use the ``SourceCatalog.default_columns`` attribute
    instead.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Sep 3 11:10:45 2026 UTC (2 months, 1 week ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +103 -38 lines
py-photutils: updated to 3.0.0

3.0.0 (2026-04-17)

General

- The minimum required NumPy is now 2.0.

- The minimum required SciPy is now 1.13.

- The minimum required Matplotlib is now 3.9.

- The minimum required scikit-image is now 0.23.

- The minimum required astropy is now 6.1.4.

New Features

- ``photutils.aperture``

  - The ``to_sky`` and ``to_pixel`` methods for all pixel and sky
    aperture types now use the local WCS Jacobian to accurately compute
    pixel scale factors and rotation angles. This correctly handles WCS
    with distortions (e.g., SIP polynomial corrections) and non-square
    pixels.

- ``photutils.background``

  - Added a ``to_aperture`` method to ``LocalBackground``.

- ``photutils.centroids``

  - Added a ``CentroidQuadratic`` class to provide an object-oriented
    interface to the ``centroid_quadratic`` function.

- ``photutils.detection``

  - Added a public ``StarFinderCatalogBase`` class that provides
    a common base for the catalogs in the ``DAOStarFinder``,
    ``IRAFStarFinder``, and ``StarFinder`` classes.

  - Added ``__repr__`` and ``__str__`` methods to ``DAOStarFinder``,
    ``IRAFStarFinder``, and ``StarFinder``.

  - Significantly improved the performance of ``DAOStarFinder``,
    ``IRAFStarFinder``, and ``StarFinder`` by vectorizing cutout
    extraction and image moment computation.

  - The ``threshold`` parameter in ``DAOStarFinder``,
    ``IRAFStarFinder``, and ``StarFinder`` now accepts a 2D array
    in addition to a scalar value, allowing for spatially varying
    detection thresholds.

  - Added a ``scale_threshold`` parameter to ``DAOStarFinder``.
    When set to `False`, the input ``threshold`` is applied directly
    to the convolved data without the default kernel-based scaling.

  - Added a ``min_separation`` keyword to ``find_peaks``. The
    implementation uses fast separable box filters and is approximately
    10-400x faster than using an explicit circular footprint with
    ``scipy.ndimage.maximum_filter`` (depending on the radius), while
    producing identical results.

- ``photutils.profiles``

  - Added a ``EnsquaredCurveOfGrowth`` class to compute a curve of
    growth using concentric square apertures.

  - Added a ``EllipticalCurveOfGrowth`` class to compute a curve of
    growth using concentric elliptical apertures with a fixed axis ratio
    and orientation.

  - Added ``moffat_fit``, ``moffat_profile``, and ``moffat_fwhm``
    properties to ``RadialProfile`` for fitting a 1D Moffat model to the
    radial profile.

- ``photutils.psf``

  - Added a ``SourceGroups`` class that stores the results of grouping
    sources and provides methods to analyze and plot the groupings.

  - Added ``remove_invalid`` and ``reset_ids`` keywords to the
    ``results_to_init_params`` and ``results_to_model_params`` methods of
    ``PSFPhotometry`` and ``IterativePSFPhotometry``.

  - Added a ``decode_flags`` convenience method to ``PSFPhotometry`` and
    ``IterativePSFPhotometry`` classes to decode the bitwise flags from
    the results table.

  - Added a ``return_bit_flags`` keyword to the ``decode_psf_flags``
    function.

  - Added ``__repr__`` methods to ``ImagePSF`` and ``GriddedPSFModel``.

  - Added a ``shape`` property to ``ImagePSF``.

  - ``EPSFBuilder`` now automatically excludes stars that repeatedly
    fail fitting and emits warnings with specific failure reasons.

  - Added validation and automatic shape handling for ``fit_shape=None``
    in ``fit_2dgaussian`` and ``fit_fwhm``. The functions now require
    explicit ``fit_shape`` for multiple sources and emit an informative
    warning for single-source fitting.

  - The ``fit_fwhm`` and ``fit_2dgaussian`` ``xypos`` value can now be
    input as a ``zip`` object.

- ``photutils.psf_matching``

  - Added a ``regularization`` keyword to ``make_kernel`` to regularize
    division by near-zero values in the source Optical Transfer Function.

  - Added ``make_wiener_kernel`` function that uses Wiener
    regularization to make a PSF matching kernel.

  - ``make_kernel`` now validates input PSFs (2D, odd dimensions,
    centered) and the window function output.

  - ``resize_psf`` now validates input PSFs and pixel scales.

  - Added ``__repr__`` methods to ``CosineBellWindow``, ``HanningWindow``,
    ``SplitCosineBellWindow``, ``TopHatWindow``, and ``TukeyWindow``
    classes.

- ``photutils.segmentation``

  - The ``SourceCatalog`` ``fluxfrac_radius`` now caches results by
    ``fluxfrac`` value. Repeated calls with the same ``fluxfrac`` return
    the cached result without recomputation.

  - The radial step used when searching for a bracketing interval in
    ``SourceCatalog`` ``fluxfrac_radius`` is now set to 10% of the current
    ``max_radius``, bounding the fallback loop to at most ~10 iterations
    regardless of source size.

  - Improved the performance (~6-9x speedup) of ``SourceCatalog``
    ``min_value``, ``max_value``, ``segment_flux``, ``segment_flux_err``,
    ``background_sum``, and ``background_mean``.

  - Added ``SegmentationImage`` ``get_segment`` and ``get_segments``
    methods to return the ``Segment`` object(s) for a given label or list
    of labels.

  - Added the ability to input ``RegionVisual`` keywords to the
    ``SegmentationImage`` ``to_regions`` method.

  - Added ``SegmentationImage`` ``get_polygon``, ``get_polygons``,
    ``get_patch``, ``get_patches``, ``get_region``, and ``get_regions``
    methods to return the polygon, patch, or region for a given segment
    label or list of labels.

  - Improved the performance of the ``SegmentationImage``
    ``keep_labels`` method and ``missing_labels`` attribute.

  - Improved the performance of ``SourceCatalog``
    ``centroid_win`` (~3.5x speedup), ``centroid_quad``,
    ``fluxfrac_radius`` (~6x speedup), ``kron_radius`` (~2x speedup),
    ``moments``, ``moments_central``, ``perimeter``, and Kron
    photometry.

- ``photutils.utils``

  - Significantly improved the performance (by factors of 3 or more) of
    ``ShepardIDWInterpolator``

  - Added a ``use_future_column_names`` context manager for temporarily
    enabling future column names in a scoped, thread-safe,
    and async-safe way without modifying the global
    ``photutils.future_column_names`` flag.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Nov 13 12:28:35 2025 UTC (12 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +26 -1 lines
py-photutils: updated to 2.3.0

2.3.0 (2025-09-15)

General

- The minimum required NumPy is now 1.25.

- The minimum required SciPy is now 1.11.1.

- The minimum required Matplotlib is now 3.8.

- The minimum required scikit-image is now 0.21.

New Features

- ``photutils.isophote``

  - ``build_ellipse_model`` is now Cythonized and considerably faster.


  - ``build_ellipse_model`` also has an additional optional keyword
    argument ``sma_interval``, which was previously hardcoded.

- ``photutils.psf``

  - ``PSFPhotometry`` and ``IterativePSFPhotometry`` now raise an error
    if the input ``error`` array contains non-finite or zero values.


  - ``GriddedPSFModel`` can now be used with a single input ePSF model,
    which will be equivalent to ``ImagePSF``.

  - The ``finder`` callable input to ``PSFPhotometry`` and
    ``IterativePSFPhotometry`` is no longer restricted to have x and y
    column names of ``'xcentroid'`` and ``'ycentroid'``. The allowed
    column names are now the same as those allowed in the
    ``init_params`` table.

  - Added a ``group_warning_threshold`` keyword to ``PSFPhotometry`` and
    ``IterativePSFPhotometry``.

  - The ``PSFPhotometry`` and ``IterativePSFPhotometry`` classes no
    longer fail for invalid sources, defined as those that have no
    overlap with the input data, are completely masked, or have too few
    unmasked pixels for a fit.  These classes have new flags (64, 128,
    256, respectively) for these invalid conditions.

  - The ``PSFPhotometry`` and ``IterativePSFPhotometry`` classes have
    new ``results_to_init_params`` and ``results_to_model_params``
    methods for outputting fit results in different formats.

  - When using Astropy 7.0+, the ``PSFPhotometry`` and
    ``IterativePSFPhotometry`` ``fitter`` object now modifies the PSF
    model in place instead of creating a copy, improving performance and
    significantly reducing memory usage in some cases.

  - ``PSFPhotometry`` and ``IterativePSFPhotometry`` now return a
    reduced chi-squared statistic (``reduced_chi2`` column in the
    results table).

  - The PSF photometry classes now use a dynamically generated "flat"
    model instead of a compound model for grouped sources. This
    eliminates recursion limits and significantly reduces memory usage
    for large groups.

- ``photutils.segmentation``

  - An optional ``array`` keyword was added to the ``SourceCatalog``
    ``make_cutouts`` method.

  - Added a ``group`` keyword to the ``SegmentationImage``
    ``to_regions`` method.

  - Added a ``decode_psf_flags`` utility function for decoding PSF
    photometry bit flags.

  - Added a ``PSF_FLAGS`` object to hold all PSF photometry bit flags in
    one place. PSF_FLAGS provides readable, named constants for each bit
    flag and helper utilities for decoding bit flags.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Apr 16 11:19:25 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +235 -67 lines
py-photutils: updated to 2.2.0

2.2.0 (2025-02-18)

New Features

- ``photutils.aperture``

  - Add an ``aperture_to_region`` function to convert an Aperture object
    to an astropy ``Region`` or ``Regions`` object.

- ``photutils.profiles``

  - Added ``data_radius`` and ``data_profile`` attributes to the
    ``RadialProfile`` class for calculating the raw radial profile.


- ``photutils.segmentation``

  - Added a ``to_regions`` method to ``SegmentationImage`` that converts
    the segment outlines to a ``regions.Regions`` object.

Bug Fixes

- ``photutils.segmentation``

  - Fixed an issue where the ``SegmentationImage`` ``polygons``
    attribute would raise an error if any source segment contained a
    hole.

API Changes

- ``photutils.aperture``

  - The ``theta`` attribute of ``EllipticalAperture``,
    ``EllipticalAnnulus``, ``RectangularAperture``, and
    ``RectangularAnnulus`` is now always returned as an angular
    ``Quantity``.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat May 18 13:37:34 2024 UTC (2 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -6 lines
py-photutils: convert to wheel.mk.

Add missing tool dependency while here.

Bump PKGREVISION.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Dec 19 14:56:04 2020 UTC (5 years, 10 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
(math/py-photutils) import py38-photutils-1.0.1

Based on PR pkg/55873 by Daisuke Kinoshita:

Photutils is an Astropy coordinated Python module for astronomical photometry.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>