------------------
General
^^^^^^^
- The minimum required python version is 3.6. [952]
- The minimum required astropy version is 4.0. [1081]
- The minimum required numpy version is 1.17. [1079]
- Removed ``astropy-helpers`` and updated the package infrastructure
as described in Astropy APE 17. [915]
New Features
^^^^^^^^^^^^
- ``photutils.aperture``
- Added ``b_in`` as an optional ellipse annulus keyword. [1070]
- Added ``h_in`` as an optional rectangle annulus keyword. [1070]
- ``photutils.background``
- Added ``coverage_mask`` and ``fill_value`` keyword options to
``Background2D``. [1061]
- ``photutils.centroids``
- Added quadratic centroid estimator function
(``centroid_quadratic``). [1067]
- ``photutils.psf``
- Added the ability to use odd oversampling factors in
``EPSFBuilder``. [1076]
- ``photutils.segmentation``
- Added Kron radius, flux, flux error, and aperture to
``SourceProperties``. [1068]
- Added local background to ``SourceProperties``. [1075]
Bug Fixes
^^^^^^^^^
- ``photutils.isophote``
- Fixed a typo in the calculation of the ``b4`` higher-order
harmonic coefficient in ``build_ellipse_model``. [1052]
- Fixed a bug where ``build_ellipse_model`` falls into an infinite
loop when the pixel to fit is outside of the image. [1039]
- Fixed a bug where ``build_ellipse_model`` falls into an infinite
loop under certain image/parameters input combinations. [1056]
- ``photutils.psf``
- Fixed a bug in ``subtract_psf`` caused by using a fill_value of
np.nan with an integer input array. [1062]
- ``photutils.segmentation``
- Fixed a bug where ``source_properties`` would fail with unitless
``gwcs.wcs.WCS`` objects. [1020]
- ``photutils.utils``
- The ``effective_gain`` parameter in ``calc_total_error`` can now
be zero (or contain zero values). [1019]
API Changes
^^^^^^^^^^^
- ``photutils.aperture``
- Aperture pixel positions can no longer be shaped as 2xN. [953]
- Removed the deprecated ``units`` keyword in ``aperture_photometry``
and ``PixelAperture.do_photometry``. [953]
- ``PrimaryHDU``, ``ImageHDU``, and ``HDUList`` can no longer be
input to ``aperture_photometry``. [953]
- Removed the deprecated the Aperture ``mask_area`` method. [953]
- Removed the deprecated Aperture plot keywords ``ax`` and
``indices``. [953]
- ``photutils.background``
- Removed the deprecated ``ax`` keyword in
``Background2D.plot_meshes``. [953]
- ``Background2D`` keyword options can not be input as positional
arguments. [1061]
- ``photutils.centroids``
- ``centroid_1dg``, ``centroid_2dg``, ``gaussian1d_moments``,
``fit_2dgaussian``, and ``GaussianConst2D`` have been moved to a new
``photutils.centroids.gaussian`` module. [1064]
- Deprecated ``fit_2dgaussian`` and ``GaussianConst2D``. [1064]
- ``photutils.datasets``
- Removed the deprecated ``type`` keyword in ``make_noise_image``.
[953]
- Renamed the ``random_state`` keyword (deprecated) to
``seed`` in ``apply_poisson_noise``, ``make_noise_image``,
``make_random_models_table``, and ``make_random_gaussians_table``
functions. [1080]
- ``photutils.detection``
- Removed the deprecated ``snr`` keyword in ``detect_threshold``.
[953]
- ``photutils.psf``
- Added ``flux_residual_sigclip`` as an input parameter, allowing for
custom sigma clipping options in ``EPSFBuilder``. [984]
- Added ``extra_output_cols`` as a parameter to
``BasicPSFPhotometry``, ``IterativelySubtractedPSFPhotometry`` and
``DAOPhotPSFPhotometry``. [745]
- ``photutils.segmentation``
- Removed the deprecated ``SegmentationImage`` methods ``cmap`` and
``relabel``. [953]
- Removed the deprecated ``SourceProperties`` ``values`` and ``coords``
attributes. [953]
- Removed the deprecated ``xmin/ymin`` and ``xmax/ymax`` properties.
[953]
- Removed the deprecated ``snr`` and ``mask_value`` keywords in
``make_source_mask``. [953]
- Renamed the ``random_state`` keyword (deprecated) to ``seed`` in the
``make_cmap`` method. [1080]
- ``photutils.utils``
- Removed the deprecated ``random_cmap``, ``mask_to_mirrored_num``,
``get_version_info``, ``filter_data``, and ``std_blocksum``
functions. [953]
- Removed the deprecated ``wcs_helpers`` functions
``pixel_scale_angle_at_skycoord``, ``assert_angle_or_pixel``,
``assert_angle``, and ``pixel_to_icrs_coords``. [953]
- Deprecated the ``check_random_state`` function. [1080]
- Renamed the ``random_state`` keyword (deprecated) to ``seed`` in the
``make_random_cmap`` function. [1080]