astropy / photutils

Astropy package for source detection and photometry. Maintainer: @larrybradley
https://photutils.readthedocs.io
BSD 3-Clause "New" or "Revised" License
231 stars 131 forks source link

Allow additional model parameters in PSF photometry init_params #1793

Closed larrybradley closed 1 week ago

larrybradley commented 1 week ago

The PSFPhotometry and IterativePSFPhotometry init_params table now allows the user to input columns for model parameters other than x, y, and flux. The column names must match the parameter names in the PSF model. They can also be suffixed with either the "_init" or "_fit" suffix.

This PR also fixes an issue in IterativePSFPhotometry where the fit_results attribute was not cleared between repeated calls.