Photutils

Latest version: v1.12.0

Safety actively analyzes 629811 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.7.0

------------------

General
^^^^^^^

- The ``rasterio`` and ``shapely`` packages are now optional
dependencies. [1509]

New Features
^^^^^^^^^^^^

- ``photutils.aperture``

- Significantly improved the performance of ``aperture_photometry``
and the ``PixelAperture`` ``do_photometry`` method for large arrays.
[1485]

- Significantly improved the performance of the ``PixelAperture``
``area_overlap`` method, especially for large arrays. [1490]

- ``photutils.profiles``

- Added a new ``profiles`` subpackage containing ``RadialProfile`` and
``CurveOfGrowth`` classes. [1494, 1496, 1498, 1499]

- ``photutils.psf``

- Significantly improved the performance of evaluating and fitting
``GriddedPSFModel`` instances. [1503]

- ``photutils.segmentation``

- Added a ``size`` keyword to the ``SegmentationImage``
``make_source_mask`` method. [1506]

- Significantly improved the performance of ``SegmentationImage``
``make_source_mask`` when using square footprints for source
dilation. [1506]

- Added the ``polygons`` property and ``to_patches`` and
``plot_patches`` methods to ``SegmentationImage``. [1509]

- Added ``polygon`` keyword to the ``Segment`` class. [1509]

Bug Fixes
^^^^^^^^^

- ``photutils.centroids``

- Fixed an issue where ``centroid_quadratic`` would sometimes fail if
the input data contained NaNs. [1495]

- ``photutils.detection``

- Fixed an issue with the starfinders (``DAOStarFinder``,
``IRAFStarFinder``, and ``StarFinder``) where an exception was
raised if ``exclude_border=True`` and there were no detections.
[1512].

- ``photutils.isophote``

- Fixed a bug where the upper harmonics (a3, a4, b3, and b4) had the
incorrect sign. [1501]

- Fixed a bug in the calculation of the upper harmonic errors (a3_err,
a4_err, b3_err, and b4_err). [1501].

- ``photutils.psf``

- Fixed an issue where the PSF-photometry progress bar was not shown.
[1517]

- Fixed an issue where all PSF uncertainties were excluded if the last
star group had no covariance matrix. [1519]

- ``photutils.utils``

- Fixed a bug in the calculation of ``ImageCutout`` ``xyorigin`` when
using the ``'partial'`` mode when the cutout extended beyond the
right or top edge. [1508]

API Changes
^^^^^^^^^^^

- ``photutils.aperture``

- The ``ApertureStats`` ``local_bkg`` keyword can now be broadcast for
apertures with multiple positions. [1504]

- ``photutils.centroids``

- The ``centroid_sources`` function will now raise an error if the
cutout mask contains all ``True`` values. [1516]

- ``photutils.datasets``

- Removed the deprecated ``load_fermi_image`` function. [1479]

- ``photutils.psf``

- Removed the deprecated ``sandbox`` classes ``DiscretePRF`` and
``Reproject``. [1479]

- ``photutils.segmentation``

- Removed the deprecated ``make_source_mask`` function in favor of the
``SegmentationImage.make_source_mask`` method. [1479]

- The ``SegmentationImage`` ``imshow`` method now uses "nearest"
interpolation instead of "none" to avoid rendering issues with some
backends. [1507]

- The ``repr()`` notebook output for the ``Segment`` class now
includes a SVG polygon representation of the segment if the
``rasterio`` and ``shapely`` packages are installed. [1509]

- Deprecated the ``SegmentationImage`` ``outline_segments`` method.
Use the ``plot_patches`` method instead. [1509]

1.6.0

------------------

General
^^^^^^^

- Following NEP 29, the minimum required Numpy is now 1.20. [1442]

- The minimum required Matplotlib is now 3.3.0. [1442]

- The minimum required scikit-image is now 0.18.0. [1442]

- The minimum required scikit-learn is now 1.0. [1442]

New Features
^^^^^^^^^^^^

- ``photutils.aperture``

- The ``ApertureStats`` class now accepts astropy ``NDData`` objects
as input. [1409]

- Improved the performance of aperture photometry by 10-25% (depending
on the number of aperture positions). [1438]

- ``photutils.psf``

- Added a progress bar for fitting PSF photometry [1426]

- Added a ``subshape`` keyword to the PSF-fitting classes to define
the shape over which the PSF is subtracted. [1477]

- ``photutils.segmentation``

- Added the ability to slice ``SegmentationImage`` objects. [1413]

- Added ``mode`` and ``fill_value`` keywords to ``SourceCatalog``
``make_cutouts`` method. [1420]

- Added ``segment_area`` source property and ``wcs``,
``localbkg_width``, ``apermask_method``, and ``kron_params``
attributes to ``SourceCatalog``. [1425]

- Added the ability to use ``Quantity`` arrays with
``detect_threshold``, ``detect_sources``, ``deblend_sources``, and
``SourceFinder``. [1436]

- The progress bar used when deblending sources now is prepended with
"Deblending". [1439]

- Added "windowed" centroids to ``SourceCatalog``. [1447, 1468]

- Added quadratic centroids to ``SourceCatalog``. [1467, 1469]

- Added a ``progress_bar`` option to ``SourceCatalog`` for displaying
progress bars when calculating some source properties. [1471]

- ``photutils.utils``

- Added ``xyorigin`` attribute to ``CutoutImage``. [1419]

- Added ``ImageDepth`` class. [1434]

Bug Fixes
^^^^^^^^^

- ``photutils.aperture``

- Fixed a bug in the ``PixelAperture`` ``area_overlap`` method so that
the returned value does not inherit the data units. [1408]

- Fixed an issue in ``ApertureStats`` ``get_ids`` for the case when
the ID numbers are not sorted (due to slicing). [1423]

- ``photutils.datasets``

- Fixed a bug in the various ``load`` functions where FITS files were
not closed. [1455]

- ``photutils.segmentation``

- Fixed an issue in the ``SourceCatalog`` ``kron_photometry``,
``make_kron_apertures``, and ``plot_kron_apertures`` methods where
the input minimum Kron and circular radii would not be applied.
Instead the instance-level minima would always be used. [1421]

- Fixed an issue where the ``SourceCatalog`` ``plot_kron_apertures``
method would raise an error for a scalar ``SourceCatalog``. [1421]

- Fixed an issue in ``SourceCatalog`` ``get_labels`` for the case when
the labels are not sorted (due to slicing). [1423]

API Changes
^^^^^^^^^^^

- Deprecated ``axes`` keyword in favor of ``ax`` for consistency with
other packages. [1432]

- Importing tools from all subpackages now requires including the
subpackage name.

- ``photutils.aperture``

- Inputting ``PixelAperture`` positions as an Astropy ``Quantity`` in
pixel units is no longer allowed. [1398]

- Inputting ``SkyAperture`` shape parameters as an Astropy
``Quantity`` in pixel units is no longer allowed. [1398]

- Removed the deprecated ``BoundingBox`` ``as_patch`` method. [1462]

- ``photutils.centroids``

- Removed the deprecated ``oversampling`` keyword in ``centroid_com``.
[1398]

- ``photutils.datasets``

- Deprecated the ``load_fermi_image`` function. [1455]

- ``photutils.psf``

- Removed the deprecated ``flux_residual_sigclip`` keyword in
``EPSFBuilder``. Use ``sigma_clip`` instead. [1398]

- PSF photometry classes will no longer emit a RuntimeWarning if the
fitted parameter variance is negative. [1458]

- ``photutils.segmentation``

- Removed the deprecated ``sigclip_sigma`` and ``sigclip_iters``
keywords in ``detect_threshold``. Use the ``sigma_clip`` keyword
instead. [1398]

- Removed the ``mask_value``, ``sigclip_sigma``, and ``sigclip_iters``
keywords in ``detect_threshold``. Use the ``mask`` or ``sigma_clip``
keywords instead. [1398]

- Removed the deprecated the ``filter_fwhm`` and ``filter_size``
keywords in ``make_source_mask``. Use the ``kernel`` keyword instead.
[1398]

- If ``detection_cat`` is input to ``SourceCatalog``, then the
detection catalog source centroids and morphological/shape
properties will be returned instead of calculating them from the
input data. Also, if ``detection_cat`` is input, then the input
``wcs``, ``apermask_method``, and ``kron_params`` keywords will be
ignored. [1425]

1.5.0

------------------

General
^^^^^^^

- Added ``tqdm`` as an optional dependency. [1364]

New Features
^^^^^^^^^^^^

- ``photutils.psf``

- Added a ``mask`` keyword when calling the PSF-fitting classes.
[1350, 1351]

- The ``EPSFBuilder`` progress bar will use ``tqdm`` if the optional
package is installed. [1367]

- ``photutils.segmentation``

- Added ``SourceFinder`` class, which is a convenience class
combining ``detect_sources`` and ``deblend_sources``. [1344]

- Added a ``sigma_clip`` keyword to ``detect_threshold``. [1354]

- Added a ``make_source_mask`` method to ``SegmentationImage``.
[1355]

- Added a ``make_2dgaussian_kernel`` convenience function. [1356]

- Allow ``SegmentationImage.make_cmap`` ``background_color`` to be in
any matplotlib color format. [1361]

- Added an ``imshow`` convenience method to ``SegmentationImage``.
[1362]

- Improved performance of ``deblend_sources``. [1364]

- Added a ``progress_bar`` keyword to ``deblend_sources``. [1364]

- Added a ``'sinh'`` mode to ``deblend_sources``. [1368]

- Improved the resetting of cached ``SegmentationImage`` properties so
that custom (non-cached) attributes can be kept. [1368]

- Added a ``nproc`` keyword to enable multiprocessing in
``deblend_sources`` and ``SourceFinder``. [1372]

- Added a ``make_cutouts`` method to ``SourceCatalog`` for making
custom-shaped cutout images. [1376]

- Added the ability to set a minimum unscaled Kron radius in
``SourceCatalog``. [1381]

- ``photutils.utils``

- Added a ``circular_footprint`` convenience function. [1355]

- Added a ``CutoutImage`` class. [1376]

Bug Fixes
^^^^^^^^^

- ``photutils.psf``

- Fixed a warning message in ``EPSFFitter``. [1382]

- ``photutils.segmentation``

- Fixed an issue in generating watershed markers used for source
deblending. [1383]

API Changes
^^^^^^^^^^^

- ``photutils.centroids``

- Changed the axes order of ``oversampling`` keyword in
``centroid_com`` when input as a tuple. [1358]

- Deprecated the ``oversampling`` keyword in ``centroid_com``. [1377]

- ``photutils.psf``

- Invalid data values (i.e., NaN or inf) are now automatically masked
when performing PSF fitting. [1350]

- Deprecated the ``sandbox`` classes ``DiscretePRF`` and
``Reproject``. [1357]

- Changed the axes order of ``oversampling`` keywords when input as a
tuple. [1358]

- Removed the unused ``shift_val`` keyword in ``EPSFBuilder`` and
``EPSFModel``. [1377]

- Renamed the ``flux_residual_sigclip`` keyword (now deprecated) to
``sigma_clip`` in ``EPSFBuilder``. [1378]

- The ``EPSFBuilder`` progress bar now requires that the optional
``tqdm`` package be installed. [1379]

- The tools in the PSF package now require keyword-only arguments.
[1386]

- ``photutils.segmentation``

- Removed the deprecated ``circular_aperture`` method from
``SourceCatalog``. [1329]

- The ``SourceCatalog`` ``plot_kron_apertures`` method now sets a
default ``kron_apers`` value. [1346]

- ``deblend_sources`` no longer allows an array to be input as a
segmentation image. It must be a ``SegmentationImage`` object.
[1347]

- ``SegmentationImage`` no longer allows array-like input. It must be
a numpy ``ndarray``. [1347]

- Deprecated the ``sigclip_sigma`` and ``sigclip_iters`` keywords in
``detect_threshold``. Use the ``sigma_clip`` keyword instead. [1354]

- Deprecated the ``make_source_mask`` function in favor of the
``SegmentationImage.make_source_mask`` method. [1355]

- Deprecated the ``kernel`` keyword in ``detect_sources`` and
``deblend_sources``. Instead, if filtering is desired, input a
convolved image directly into the ``data`` parameter. [1365]

- Sources with a data minimum of zero are now treated the same as
negative minima (i.e., the mode is changed to "linear") for the
"exponential" deblending mode. [1368]

- A single warning (as opposed to 1 per source) is now raised about
negative/zero minimum data values using the 'exponential' deblending
mode. The affected labels is available in a new "info" attribute.
[1368]

- If the mode in ``deblend_sources`` is "exponential" or "sinh" and there
are too many potential deblended sources within a given source
(watershed markers), a warning will be raised and the mode will be
changed to "linear". [1369]

- The ``SourceCatalog`` ``make_circular_apertures`` and
``make_kron_apertures`` methods now return a single aperture
(instead of a list with one item) for a scalar ``SourceCatalog``.
[1376]

- The ``SourceCatalog`` ``kron_params`` keyword now has an optional
third item representing the minimum circular radius. [1381]

- The ``SourceCatalog`` ``kron_radius`` is now set to the minimum Kron
radius (the second element of ``kron_params``) if the data or
radially weighted data sum to zero. [1381]

- ``photutils.utils``

- The colormap returned from ``make_random_cmap`` now has colors in
RGBA format. [1361]

1.4.0

------------------

General
^^^^^^^

- The minimum required Python is now 3.8. [1279]

- The minimum required Numpy is now 1.18. [1279]

- The minimum required Astropy is now 5.0. [1279]

- The minimum required Matplotlib is now 3.1. [1279]

- The minimum required scikit-image is now 0.15.0 [1279]

- The minimum required gwcs is now 0.16.0 [1279]

New Features
^^^^^^^^^^^^

- ``photutils.aperture``

- Added a ``copy`` method to ``Aperture`` objects. [1304]

- Added the ability to compare ``Aperture`` objects for equality.
[1304]

- The ``theta`` keyword for ``EllipticalAperture``, ``EllipticalAnnulus``,
``RectangularAperture``, and ``RectangularEllipse`` can now be an
Astropy ``Angle`` or ``Quantity`` in angular units. [1308]

- Added an ``ApertureStats`` class for computing statistics of
unmasked pixels within an aperture. [1309, 1314, 1315, 1318]

- Added a ``dtype`` keyword to the ``ApertureMask`` ``to_image``
method. [1320]

- ``photutils.background``

- Added an ``alpha`` keyword to the ``Background2D.plot_meshes``
method. [1286]

- Added a ``clip`` keyword to the ``BkgZoomInterpolator`` class.
[1324]

- ``photutils.segmentation``

- Added ``SegmentationImage`` ``cmap`` attribute containing a default
colormap. [1319]

- Improved the performance of ``SegmentationImage`` and
``SourceCatalog``, especially for large data arrays. [1320]

- Added a ``convolved_data`` keyword to ``SourceCatalog``. This is
recommended instead of using the ``kernel`` keyword. [1321]

Bug Fixes
^^^^^^^^^

- ``photutils.aperture``

- Fixed a bug in ``aperture_photometry`` where an error was not raised
if the data and error arrays have different units. [1285].

- ``photutils.background``

- Fixed a bug in ``Background2D`` where using the ``pad`` edge method
would result in incorrect image padding if only one of the axes needed
padding. [1292]

- ``photutils.centroids``

- Fixed a bug in ``centroid_sources`` where setting ``error``,
``xpeak``, or ``ypeak`` to ``None`` would result in an error.
[1297]

- Fixed a bug in ``centroid_quadratic`` where inputting a mask
would alter the input data array. [1317]

- ``photutils.segmentation``

- Fixed a bug in ``SourceCatalog`` where a ``UFuncTypeError`` would
be raised if the input ``data`` had an integer ``dtype`` [1312].

API Changes
^^^^^^^^^^^

- ``photutils.aperture``

- A ``ValueError`` is now raised if non-positive sizes are input to
sky-based apertures. [1295]

- The ``BoundingBox.plot()`` method now returns a
``matplotlib.patches.Patch`` object. [1305]

- Inputting ``PixelAperture`` positions as an Astropy ``Quantity`` in
pixel units is deprecated. [1310]

- Inputting ``SkyAperture`` shape parameters as an Astropy
``Quantity`` in pixel units is deprecated. [1310]

- ``photutils.background``

- Removed the deprecated ``background_mesh_ma`` and
``background_rms_mesh_ma`` ``Background2D`` properties. [1280]

- By default, ``BkgZoomInterpolator`` uses ``clip=True`` to prevent
the interpolation from producing values outside the given input
range. If backwards-compatibility is needed with older Photutils
versions, set ``clip=False``. [1324]

- ``photutils.centroids``

- Removed the deprecated ``centroid_epsf`` and ``gaussian1d_moments``
functions. [1280]

- Importing tools from the centroids subpackage now requires including
the subpackage name. [1280]

- ``photutils.morphology``

- Importing tools from the morphology subpackage now requires
including the subpackage name. [1280]

- ``photutils.segmentation``

- Removed the deprecated ``source_properties`` function and the
``SourceProperties`` and ``LegacySourceCatalog`` classes. [1280]

- Removed the deprecated the ``filter_kernel`` keyword in the
``detect_sources``, ``deblend_sources``, and ``make_source_mask``
functions. [1280]

- A ``TypeError`` is raised if the input array to
``SegmentationImage`` does not have integer type. [1319]

- A ``SegmentationImage`` may contain an array of all zeros. [1319]

- Deprecated the ``mask_value`` keyword in ``detect_threshold``. Use
the ``mask`` keyword instead. [1322]

- Deprecated the ``filter_fwhm`` and ``filter_size`` keywords in
``make_source_mask``. Use the ``kernel`` keyword instead. [1322]

1.3.0

------------------

General
^^^^^^^

- The metadata in output tables now contains version information for all
dependencies. [1274]

New Features
^^^^^^^^^^^^

- ``photutils.centroids``

- Extra keyword arguments can be input to ``centroid_sources`` that
are then passed on to the ``centroid_func`` if supported.
[1276, 1278]

- ``photutils.segmentation``

- Added ``copy`` method to ``SourceCatalog``. [1264]

- Added ``kron_photometry`` method to ``SourceCatalog``. [1264]

- Added ``add_extra_property``, ``remove_extra_property``,
``remove_extra_properties``, and ``rename_extra_property`` methods
and ``extra_properties`` attribute to ``SourceCatalog``. [1264,
1268]

- Added ``name`` and ``overwrite`` keywords to ``SourceCatalog``
``circular_photometry`` and ``fluxfrac_radius`` methods. [1264]

- ``SourceCatalog`` ``fluxfrac_radius`` was improved for cases where
the source flux doesn't monotonically increase with increasing radius.
[1264]

- Added ``meta`` and ``properties`` attributes to ``SourceCatalog``.
[1268]

- The ``SourceCatalog`` output table (using ``to_table``) ``meta``
dictionary now includes a field for the date/time. [1268]

- Added ``SourceCatalog`` ``make_kron_apertures`` method. [1268]

- Added ``SourceCatalog`` ``plot_circular_apertures`` and
``plot_kron_apertures`` methods. [1268]

Bug Fixes
^^^^^^^^^

- ``photutils.segmentation``

- If ``detection_catalog`` is input to ``SourceCatalog`` then the
detection centroids are used to calculate the ``circular_aperture``,
``circular_photometry``, and ``fluxfrac_radius``. [1264]

- Units are applied to ``SourceCatalog`` ``circular_photometry``
output if the input data has units. [1264]

- ``SourceCatalog`` ``circular_photometry`` returns scalar values if
catalog is scalar. [1264]

- ``SourceCatalog`` ``fluxfrac_radius`` returns a ``Quantity`` with
pixel units. [1264]

- Fixed a bug where the ``SourceCatalog`` ``detection_catalog`` was
not indexed/sliced when ``SourceCatalog`` was indexed/sliced. [1268]

- ``SourceCatalog`` ``circular_photometry`` now returns NaN for
completely-masked sources. [1268]

- ``SourceCatalog`` ``kron_flux`` is always NaN for sources where
``kron_radius`` is NaN. [1268]

- ``SourceCatalog`` ``fluxfrac_radius`` now returns NaN if
``kron_flux`` is zero. [1268]

API Changes
^^^^^^^^^^^

- ``photutils.centroids``

- A ``ValueError`` is now raised in ``centroid_sources`` if the input
``xpos`` or ``ypos`` is outside of the input ``data``. [1276]

- A ``ValueError`` is now raised in ``centroid_quadratic`` if the input
``xpeak`` or ``ypeak`` is outside of the input ``data``. [1276]

- NaNs are now returned from ``centroid_sources`` where the centroid
failed. This is usually due to a ``box_size`` that is too small when
using a fitting-based centroid function. [1276]

- ``photutils.segmentation``

- Renamed the ``SourceCatalog`` ``circular_aperture`` method to
``make_circular_apertures``. The old name is deprecated. [1268]

- The ``SourceCatalog`` ``kron_params`` keyword must have a minimum
circular radius that is greater than zero. The default value is now
1.0. [1268]

- ``detect_sources`` now uses ``astropy.convolution.convolve``, which
allows for masking pixels. [1269]

1.2.0

------------------

General
^^^^^^^

- The minimum required scipy version is 1.6.0 [1239]

New Features
^^^^^^^^^^^^

- ``photutils.aperture``

- Added a ``mask`` keyword to the ``area_overlap`` method. [1241]

- ``photutils.background``

- Improved the performance of ``Background2D`` by up to 10-50% when
the optional ``bottleneck`` package is installed. [1232]

- Added a ``masked`` keyword to the background
classes ``MeanBackground``, ``MedianBackground``,
``ModeEstimatorBackground``, ``MMMBackground``,
``SExtractorBackground``, ``BiweightLocationBackground``,
``StdBackgroundRMS``, ``MADStdBackgroundRMS``, and
``BiweightScaleBackgroundRMS``. [1232]

- Enable all background classes to work with ``Quantity`` inputs.
[1233]

- Added a ``markersize`` keyword to the ``Background2D`` method
``plot_meshes``. [1234]

- Added ``__repr__`` methods to all background classes. [1236]

- Added a ``grid_mode`` keyword to ``BkgZoomInterpolator``. [1239]

- ``photutils.detection``

- Added a ``xycoords`` keyword to ``DAOStarFinder`` and
``IRAFStarFinder``. [1248]

- ``photutils.psf``

- Enabled the reuse of an output table from ``BasicPSFPhotometry`` and
its subclasses as an initial guess for another photometry run. [1251]

- Added the ability to skip the ``group_maker`` step by inputing an
initial guess table with a ``group_id`` column. [1251]

Bug Fixes
^^^^^^^^^

- ``photutils.aperture``

- Fixed a bug when converting between pixel and sky apertures with a
``gwcs`` object. [1221]

- ``photutils.background``

- Fixed an issue where ``Background2D`` could fail when using the
``'pad'`` edge method. [1227]

- ``photutils.detection``

- Fixed the ``DAOStarFinder`` import deprecation message. [1195]

- ``photutils.morphology``

- Fixed an issue in ``data_properties`` where a scalar background
input would raise an error. [1198]

- ``photutils.psf``

- Fixed an issue in ``prepare_psf_model`` when ``xname`` or ``yname``
was ``None`` where the model offsets were applied in the wrong
direction, resulting in the initial photometry guesses not being
improved by the fit. [1199]

- ``photutils.segmentation``

- Fixed an issue in ``SourceCatalog`` where the user-input ``mask``
was ignored when ``apermask_method='correct'`` for Kron-related
calculations. [1210]

- Fixed an issue in ``SourceCatalog`` where the ``segment`` array
could incorrectly have units. [1220]

- ``photutils.utils``

- Fixed an issue in ``ShepardIDWInterpolator`` to allow its
initialization with scalar data values and coordinate arrays having
more than one dimension. [1226]

API Changes
^^^^^^^^^^^

- ``photutils.aperture``

- The ``ApertureMask.get_values()`` function now returns an empty
array if there is no overlap with the data. [1212]

- Removed the deprecated ``BoundingBox.slices`` and
``PixelAperture.bounding_boxes`` attributes. [1215]

- ``photutils.background``

- Invalid data values (i.e., NaN or inf) are now automatically masked
in ``Background2D``. [1232]

- The background classes ``MeanBackground``, ``MedianBackground``,
``ModeEstimatorBackground``, ``MMMBackground``,
``SExtractorBackground``, ``BiweightLocationBackground``,
``StdBackgroundRMS``, ``MADStdBackgroundRMS``, and
``BiweightScaleBackgroundRMS`` now return by default a
``numpy.ndarray`` with ``np.nan`` values representing masked pixels
instead of a masked array. A masked array can be returned by setting
``masked=True``. [1232]

- Deprecated the ``Background2D`` attributes ``background_mesh_ma``
and ``background_rms_mesh_ma``. They have been renamed to
``background_mesh_masked`` and ``background_rms_mesh_masked``.
[1232]

- By default, ``BkgZoomInterpolator`` now uses ``grid_mode=True``.
For zooming 2D images, this keyword should be set to True,
which makes the interpolator's behavior consistent with
``scipy.ndimage.map_coordinates``, ``skimage.transform.resize``, and
``OpenCV (cv2.resize)``. If backwards-compatibility is needed with
older Photutils versions, set ``grid_mode=False``. [1239]

- ``photutils.centroids``

- Deprecated the ``gaussian1d_moments`` and ``centroid_epsf``
functions. [1240]

- ``photutils.datasets``

- Removed the deprecated ``random_state`` keyword in the
``apply_poisson_noise``, ``make_noise_image``,
``make_random_models_table``, and ``make_random_gaussians_table``
functions. [1244]

- ``make_random_models_table`` and ``make_random_gaussians_table`` now
return an astropy ``QTable`` with version metadata. [1247]

- ``photutils.detection``

- ``DAOStarFinder``, ``IRAFStarFinder``, and ``find_peaks`` now return
an astropy ``QTable`` with version metadata. [1247]

- The ``StarFinder`` ``label`` column was renamed to ``id`` for
consistency with the other star finder classes. [1254]

- ``photutils.isophote``

- The ``Isophote`` ``to_table`` method nows return an astropy
``QTable`` with version metadata. [1247]

- ``photutils.psf``

- ``BasicPSFPhotometry``, ``IterativelySubtractedPSFPhotometry``, and
``DAOPhotPSFPhotometry`` now return an astropy ``QTable`` with
version metadata. [1247]

- ``photutils.segmentation``

- Deprecated the ``filter_kernel`` keyword in the ``detect_sources``,
``deblend_sources``, and ``make_source_mask`` functions. It has been
renamed to simply ``kernel`` for consistency with ``SourceCatalog``.
[1242]

- Removed the deprecated ``random_state`` keyword in the ``make_cmap``
method. [1244]

- The ``SourceCatalog`` ``to_table`` method nows return an astropy
``QTable`` with version metadata. [1247]

- ``photutils.utils``

- Removed the deprecated ``check_random_state`` function. [1244]

- Removed the deprecated ``random_state`` keyword in the
``make_random_cmap`` function. [1244]

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.