assert_psfs_equal#
- lsst.images.tests.assert_psfs_equal(tc: TestCase, psf1: PointSpreadFunction, psf2: PointSpreadFunction, points: YX[ndarray] | XY[ndarray] | None = None) int#
Compare two PSF objets.
Parameters#
- tc
Test case object with assert methods to use.
- psf1
Point-spread function to test.
- psf2
The other point-spread function to test.
- points
Points to evaluate the PSFs at. If not provided, the intersection of the PSF bounding boxes are used to generate points on a grid.
Returns#
intThe number of points actually tested.