astropy / photutils

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

Make psf_shape an optional keyword #1921

Closed larrybradley closed 1 month ago

larrybradley commented 1 month ago

With this PR, psf_shape is now an optional keyword in the make_model_image and make_residual_image methods of PSFPhotometry and IterativePSFPhotometry. The value defaults to using the model bounding box to define the shape and is required only if the PSF model does not have a bounding box attribute.

This PR also fixes an issue in make_model_image where if the bbox_factor was input and the model bounding box did not have a factor keyword then an error would be raised.