Skip to content

Commit

Permalink
Merge pull request #1983 from larrybradley/whats-new-21
Browse files Browse the repository at this point in the history
Add whats new for v2.1.0
  • Loading branch information
larrybradley authored Jan 2, 2025
2 parents fac4890 + 0d7b81a commit 5adb324
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
48 changes: 48 additions & 0 deletions docs/whats_new/2.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. doctest-skip-all
.. _whatsnew-2.1:

****************************
What's New in Photutils 2.1?
****************************

Here we highlight some of the new functionality of the 2.1 release.
In addition to these changes, Photutils 2.1 includes several
smaller improvements and bug fixes, which are described in the full
:ref:`changelog`.


Aperture Photometry Output Table
--------------------------------

The ``aperture_photometry`` output table will now include a
``sky_center`` column if ``wcs`` is input, even if the input aperture is
not a sky aperture.


Find Peaks Border Width
-----------------------

The ``find_peaks`` ``border_width`` keyword can now accept two values,
indicating the border width along the the y and x edges, respectively.


Gini Coefficient
----------------

An optional ``mask`` keyword was added to the ``gini`` function to allow
for the exclusion of certain pixels from the calculation of the Gini
coefficient.

Also, the ``gini`` function now returns zero instead of NaN if the
(unmasked) data values sum to zero.


Improved GriddedPSFModel Plots
------------------------------

The ``'viridis'`` color map is now the default in the
``GriddedPSFModel`` ``plot_grid`` method when ``deltas=True``.

Also, the ``GriddedPSFModel`` ``plot_grid`` color bar now matches the
height of the displayed image.
3 changes: 2 additions & 1 deletion docs/whats_new/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ What's New
.. toctree::
:maxdepth: 1

2.0.rst
2.1.rst


Past Releases
Expand All @@ -18,6 +18,7 @@ functionality highlighted in these pages.
.. toctree::
:maxdepth: 1

2.0.rst
1.13.rst
1.12.rst
1.11.rst
Expand Down

0 comments on commit 5adb324

Please sign in to comment.