This PR fixes an issue where IterativePSFPhotometry could sometimes raise an error about non-overlapping data. This was caused by the fitter failing and returning positions well outside of the input image during the iterations. When those invalid positions then were used an inputs in a subsequent iteration, a ValueError was raised. With this PR, those invalid positions are automatically removed during the iterations.
This PR fixes an issue where
IterativePSFPhotometry
could sometimes raise an error about non-overlapping data. This was caused by the fitter failing and returning positions well outside of the input image during the iterations. When those invalid positions then were used an inputs in a subsequent iteration, aValueError
was raised. With this PR, those invalid positions are automatically removed during the iterations.Fixes #1769.