Skip to content

Commit

Permalink
Merge pull request #1709 from larrybradley/whats-new
Browse files Browse the repository at this point in the history
Add what's new for 1.11.0
  • Loading branch information
larrybradley committed Feb 15, 2024
2 parents 232edae + 54c33f8 commit f52a677
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
64 changes: 64 additions & 0 deletions docs/whats_new/1.11.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.. doctest-skip-all
*****************************
What's New in Photutils 1.11?
*****************************

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


``SourceFinder`` ``npixels`` tuple input
----------------------------------------

The `~photutils.segmentation.SourceFinder` ``npixels`` keyword can now
be a tuple corresponding to the values used for the source finder and
source deblender, respectively.


``GriddedPSFModel`` Memory Usage
--------------------------------

The memory usage during PSF photometry when using a
`~photutils.psf.GriddedPSFModel` PSF model has been significantly
reduced. This is especially noticeable when fitting a large number of
stars.


New ``IterativePSFPhotometry`` ``mode`` keyword
-----------------------------------------------

A ``mode`` keyword was added to `~photutils.psf.IterativePSFPhotometry`
for controlling the fitting mode. The ``mode`` keyword can
be set to 'new' or 'all'.

For the 'new' mode (default), PSF photometry is run in each
iteration only on the new sources detected in the residual
image. The 'new' mode preserves the previous behavior of
`~photutils.psf.IterativePSFPhotometry`.

For the 'all' mode, PSF photometry is run in each iteration on all
the detected sources (from all previous iterations) on the original,
unsubtracted, data. For the 'all' mode, a source grouper must be input.

Initial tests indicate that the 'all' mode may give better results than
the older 'new' method.


New ``include_localbkg`` keyword
--------------------------------

The PSF photometry ``make_model_image`` and ``make_residual_image``
methods no longer include the local background by default, which
causes issues if the ``psf_shape`` of sources overlap. This is
a backwards-incompatible change. These methods now accept an
``include_localbkg`` keyword . If the previous behavior is desired, set
``include_localbkg=True``.


Other changes
=============

Please see the :ref:`changelog` for the complete list of changes.
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

1.10.rst
1.11.rst


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

1.10.rst
1.9.rst
1.8.rst
1.7.rst
Expand Down

0 comments on commit f52a677

Please sign in to comment.