Skip to content

Commit f1aab00

Browse files
authored
Merge pull request #2241 from larrybradley/photutils3-deprecations
Photutils 3+ deprecations
2 parents 99db159 + ef217b3 commit f1aab00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3089
-1989
lines changed

CHANGES.rst

Lines changed: 228 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ New Features
134134
regardless of source size. [#2197]
135135

136136
- Improved the performance (~6-9x speedup) of ``SourceCatalog``
137-
``min_value``, ``max_value``, ``segment_flux``, ``segment_fluxerr``,
137+
``min_value``, ``max_value``, ``segment_flux``, ``segment_flux_err``,
138138
``background_sum``, and ``background_mean``. [#2199]
139139

140140
- Added ``SegmentationImage`` ``get_segment`` and ``get_segments``
@@ -243,6 +243,38 @@ API Changes
243243

244244
- ``photutils.aperture``
245245

246+
- The ``ApertureStats`` ``covar_sigx2``, ``covar_sigxy``, and
247+
``covar_sigy2`` attributes have been renamed to ``covariance_xx``,
248+
``covariance_xy``, and ``covariance_yy``, respectively. The old
249+
names are deprecated. [#2241]
250+
251+
- The ``ApertureStats`` ``cxx``, ``cxy``, and ``cyy`` attributes have
252+
been renamed to ``ellipse_cxx``, ``ellipse_cxy``, and
253+
``ellipse_cyy``, respectively. The old names are deprecated. [#2241]
254+
255+
- The ``ApertureStats`` ``data_sumcutout`` and ``error_sumcutout``
256+
attributes have been renamed to ``data_sum_cutout`` and
257+
``error_sum_cutout``, respectively. The old names are deprecated.
258+
[#2241]
259+
260+
- The ``ApertureStats`` ``get_id`` and ``get_ids`` methods have been
261+
renamed to ``select_id`` and ``select_ids``, respectively. The old
262+
names are deprecated. [#2241]
263+
264+
- The ``ApertureStats`` ``semimajor_sigma`` and ``semiminor_sigma``
265+
attributes/columns have been renamed to ``semimajor_axis`` and
266+
``semiminor_axis``, respectively. The old names are deprecated.
267+
[#2241]
268+
269+
- The ``ApertureStats`` ``xcentroid`` and ``ycentroid``
270+
attributes/columns have been renamed to ``x_centroid`` and
271+
``y_centroid``, respectively. The old names are deprecated.
272+
[#2241]
273+
274+
- The ``xcenter`` and ``ycenter`` column names in the table returned
275+
by ``aperture_photometry`` have been renamed to ``x_center`` and
276+
``y_center``, respectively. The old names are deprecated. [#2241]
277+
246278
- The ``CircularMaskMixin``, ``EllipticalMaskMixin``, and
247279
``RectangularMaskMixin`` classes are now deprecated. The mask
248280
generation is now handled internally by the ``PixelAperture``
@@ -266,9 +298,17 @@ API Changes
266298
used to resize the low-resolution arrays. The behavior will be
267299
identical to the current default. [#2108]
268300

301+
- The ``Background2D`` ``npixels_mesh`` and ``npixels_map`` properties
302+
have been renamed to ``n_pixels_mesh`` and ``n_pixels_map``,
303+
respectively. The old names are deprecated. [#2241]
304+
269305
- The ``BkgIDWInterpolator`` and ``BkgZoomInterpolator`` classes are
270306
now deprecated. [#2108]
271307

308+
- The ``Background2D`` ``bkgrms_estimator`` keyword argument has been
309+
renamed to ``bkg_rms_estimator``. The old name is deprecated.
310+
[#2241]
311+
272312
- ``photutils.centroids``
273313

274314
- The ``xpeak``, ``ypeak``, and ``search_boxsize`` keyword arguments
@@ -308,15 +348,58 @@ API Changes
308348
``IRAFStarFinder``, and ``StarFinder`` is now deprecated. Use
309349
``n_brightest`` instead. [#2216]
310350

351+
- The ``npeaks`` keyword argument for ``find_peaks`` is now
352+
deprecated. Use ``n_peaks`` instead. [#2241]
353+
311354
- The default ``min_separation`` for ``DAOStarFinder``,
312355
``IRAFStarFinder``, and ``StarFinder`` is now ``None``, which
313356
computes a default separation of ``2.5 * fwhm`` (or ``2.5 *
314357
(min(kernel.shape) // 2)`` for ``StarFinder``) consistent across all
315358
three star finders. [#2216]
316359

317-
- The ``IRAFStarFinder`` and ``StarFinder`` ``pa`` values are now
318-
always returned as a ``Quantity`` array in the range [0, 360)
319-
degrees. [#2224, #2225]
360+
- The ``xcentroid`` and ``ycentroid`` column/attribute names for
361+
``DAOStarFinder``, ``IRAFStarFinder``, and ``StarFinder`` catalog
362+
classes are deprecated. Use ``x_centroid`` and ``y_centroid``
363+
instead. The ``cutout_xcentroid`` and ``cutout_ycentroid`` attributes
364+
are also deprecated in favor of ``cutout_x_centroid`` and
365+
``cutout_y_centroid``. [#2241]
366+
367+
- The ``IRAFStarFinder`` and ``StarFinder`` ``pa`` attribute/column
368+
has been renamed to ``orientation``. The old name is deprecated.
369+
[#2241]
370+
371+
- The ``npix`` column/attribute in ``DAOStarFinder`` and
372+
``IRAFStarFinder`` catalogs has been renamed to ``n_pixels``. The
373+
old name is deprecated. [#2241]
374+
375+
- The ``IRAFStarFinder`` and ``StarFinder`` ``orientation`` (was
376+
``pa``) values are now always returned as a ``Quantity`` array in the
377+
range [0, 360) degrees. [#2224, #2225]
378+
379+
- ``photutils.isophote``
380+
381+
- The ``Isophote`` and ``IsophoteList`` ``grad_error`` and
382+
``grad_r_error`` attributes have been renamed to ``gradient_err`` and
383+
``gradient_rel_err``, respectively. The old names are deprecated.
384+
[#2241]
385+
386+
- The ``EllipseSample`` ``gradient_error`` and
387+
``gradient_relative_error`` attributes have been renamed to
388+
``gradient_err`` and ``gradient_rel_err``, respectively. The old names
389+
are deprecated. [#2241]
390+
391+
- The ``grad_error`` and ``grad_rerror`` column names in the
392+
isophote output table have been renamed to ``gradient_err`` and
393+
``gradient_rel_err``, respectively. The old names are deprecated.
394+
[#2241]
395+
396+
- The ``nclip`` parameter in ``Ellipse.fit_image``,
397+
``Ellipse.fit_isophote``, and ``EllipseSample`` has been renamed to
398+
``n_clip``. The old name is deprecated. [#2241]
399+
400+
- The ``Isophote`` and ``IsophotList`` ``niter``, ``ndata``, and
401+
``nflag`` attributes have been renamed to ``n_iter``, ``n_data``, and
402+
``n_flag``, respectively. The old names are deprecated. [#2241]
320403

321404
- ``photutils.profiles``
322405

@@ -356,6 +439,22 @@ API Changes
356439

357440
- ``LinkedEPSFStar`` no longer inherits from ``EPSFStars``. [#2158]
358441

442+
- The ``npixfit`` column in ``PSFPhotometry`` results has been renamed
443+
to ``n_pixels_fit``. The old name is deprecated. [#2241]
444+
445+
- The ``NPIXFIT_PARTIAL`` (``npixfit_partial``) PSF flag has been
446+
renamed to ``N_PIXELS_FIT_PARTIAL`` (``n_pixels_fit_partial``). The
447+
old name is deprecated. [#2241]
448+
449+
- The ``PSFPhotometry`` and ``IterativePSFPhotometry``
450+
``localbkg_estimator`` keyword argument has been renamed to
451+
``local_bkg_estimator``. The old name is deprecated. [#2241]
452+
453+
- The ``PSFPhotometry`` and ``IterativePSFPhotometry``
454+
``include_localbkg`` keyword argument in ``make_model_image``
455+
and ``make_residual_image`` has been renamed to
456+
``include_local_bkg``. The old name is deprecated. [#2241]
457+
359458
- ``photutils.psf_matching``
360459

361460
- Renamed ``create_matching_kernel`` to ``make_kernel``. The old name
@@ -375,6 +474,131 @@ API Changes
375474
- The ``SourceCatalog`` ``orientation`` property is now always
376475
returned in the range [0, 360) degrees. [#2224]
377476

477+
- The ``SegmentationImage`` ``nlabels``, ``data_ma``,
478+
``deblended_labels_map``, and ``deblended_labels_inverse_map``
479+
attributes have been renamed to ``n_labels``, ``data_masked``,
480+
``deblended_label_to_parent``, and ``parent_to_deblended_labels``,
481+
respectively. The old names are deprecated. [#2241]
482+
483+
- The ``Segment`` ``data_ma`` attribute has been renamed to
484+
``data_masked``. The old name is deprecated. [#2241]
485+
486+
- The ``SourceCatalog`` ``data``, ``error``, ``background``, and
487+
``segment`` attributes have been renamed to ``data_cutout``,
488+
``error_cutout``, ``background_cutout``, and ``segment_cutout``,
489+
respectively. The old names are deprecated. [#2241]
490+
491+
- The ``SourceCatalog`` ``data_ma``, ``error_ma``, ``background_ma``,
492+
and ``segment_ma`` attributes have been renamed to
493+
``data_cutout_masked``, ``error_cutout_masked``,
494+
``background_cutout_masked``, and ``segment_cutout_masked``,
495+
respectively. The old names are deprecated. [#2241]
496+
497+
- The ``SourceCatalog`` ``convdata`` and ``convdata_ma`` attributes
498+
have been renamed to ``conv_data_cutout`` and
499+
``conv_data_cutout_masked``, respectively. The old names are
500+
deprecated. [#2241]
501+
502+
- The ``SourceCatalog`` ``cutout_minval_index`` and
503+
``cutout_maxval_index`` attributes have been renamed to
504+
``cutout_min_value_index`` and ``cutout_max_value_index``,
505+
respectively. The old names are deprecated. [#2241]
506+
507+
- The ``SourceCatalog`` ``minval_index``, ``maxval_index``,
508+
``minval_xindex``, ``minval_yindex``, ``maxval_xindex``, and
509+
``maxval_yindex`` attributes have been renamed to
510+
``min_value_index``, ``max_value_index``, ``min_value_xindex``,
511+
``min_value_yindex``, ``max_value_xindex``, and
512+
``max_value_yindex``, respectively. The old names are deprecated.
513+
[#2241]
514+
515+
- The ``SourceCatalog`` ``covar_sigx2``, ``covar_sigxy``, and
516+
``covar_sigy2`` attributes/columns have been renamed to
517+
``covariance_xx``, ``covariance_xy``, and ``covariance_yy``,
518+
respectively. The old names are deprecated. [#2241]
519+
520+
- The ``SourceCatalog`` ``cxx``, ``cxy``, and ``cyy``
521+
attributes/columns have been renamed to ``ellipse_cxx``,
522+
``ellipse_cxy``, and ``ellipse_cyy``, respectively. The old names
523+
are deprecated. [#2241]
524+
525+
- The ``SourceCatalog`` ``segment_fluxerr`` and ``kron_fluxerr``
526+
attributes/columns have been renamed to ``segment_flux_err`` and
527+
``kron_flux_err``, respectively. The old names are deprecated.
528+
[#2241]
529+
530+
- The ``SourceCatalog`` ``fluxfrac_radius`` attribute has been renamed
531+
to ``flux_radius``. The old name is deprecated. [#2241]
532+
533+
- The ``SourceCatalog`` ``get_label`` and ``get_labels`` methods have
534+
been renamed to ``select_label`` and ``select_labels``,
535+
respectively. The old names are deprecated. [#2241]
536+
537+
- The ``SourceCatalog`` ``add_extra_property``,
538+
``remove_extra_property``, ``remove_extra_properties``, and
539+
``rename_extra_property`` methods have been renamed to
540+
``add_property``, ``remove_property``, ``remove_properties``, and
541+
``rename_property``, respectively. The ``extra_properties``
542+
attribute has been renamed to ``custom_properties``. The old names
543+
are deprecated. [#2241]
544+
545+
- The ``SourceCatalog`` ``nlabels`` and ``localbkg_width`` attributes
546+
have been renamed to ``n_labels`` and ``local_bkg_width``,
547+
respectively. The old names are deprecated. [#2241]
548+
549+
- The ``SourceCatalog`` ``semimajor_sigma`` and ``semiminor_sigma``
550+
attributes/columns have been renamed to ``semimajor_axis`` and
551+
``semiminor_axis``, respectively. The old names are deprecated.
552+
[#2241]
553+
554+
- The ``SourceCatalog`` ``xcentroid``, ``ycentroid``,
555+
``xcentroid_win``, ``ycentroid_win``, ``xcentroid_quad``, and
556+
``ycentroid_quad`` attributes/columns have been renamed to
557+
``x_centroid``, ``y_centroid``, ``x_centroid_win``,
558+
``y_centroid_win``, ``x_centroid_quad``, and ``y_centroid_quad``,
559+
respectively. The old names are deprecated. [#2241]
560+
561+
- The ``SourceCatalog`` ``segment_img``, ``localbkg_width``,
562+
``apermask_method``, and ``detection_cat`` keyword arguments have
563+
been renamed to ``segmentation_image``, ``local_bkg_width``,
564+
``aperture_mask_method``, and ``detection_catalog``, respectively.
565+
The old names are deprecated. [#2241]
566+
567+
- The ``SourceFinder`` ``npixels``, ``nlevels``, and ``nproc``
568+
attributes have been renamed to ``n_pixels``, ``n_levels``, and
569+
``n_processes``, respectively. The old names are deprecated. [#2241]
570+
571+
- The ``nsigma`` parameter in ``detect_threshold`` has been renamed
572+
to ``n_sigma``. The old name is deprecated. [#2241]
573+
574+
- The ``npixels`` parameter in ``detect_sources`` has been renamed
575+
to ``n_pixels``. The old name is deprecated. [#2241]
576+
577+
- The ``segment_img``, ``npixels``, ``nlevels``, and ``nproc``
578+
parameters in ``deblend_sources`` have been renamed to
579+
``segmentation_image``, ``n_pixels``, ``n_levels``, and
580+
``n_processes``, respectively. The old names are deprecated. [#2241]
581+
582+
- The ``npixels``, ``nlevels``, and ``nproc`` parameters in
583+
``SourceFinder`` have been renamed to ``n_pixels``, ``n_levels``,
584+
and ``n_processes``, respectively. The old names are deprecated.
585+
[#2241]
586+
587+
- ``photutils.utils``
588+
589+
- The ``ImageDepth`` ``nsigma``, ``napers``, and ``niters`` parameters
590+
have been renamed to ``n_sigma``, ``n_apertures``, and ``n_iters``,
591+
respectively. The old names are deprecated. The ``napers_used``
592+
attribute has also been renamed to ``n_apertures_used``. [#2241]
593+
594+
- The ``make_random_cmap`` ``ncolors`` parameter has been renamed
595+
to ``n_colors``. The old name is deprecated. [#2241]
596+
597+
- The ``ShepardIDWInterpolator`` ``reg`` parameter in ``__call__``
598+
has been renamed to ``regularization``. The old name is deprecated.
599+
[#2241]
600+
601+
378602
2.3.0 (2025-09-15)
379603
------------------
380604

0 commit comments

Comments
 (0)