compare_psf_to_legacy#

lsst.images.tests.compare_psf_to_legacy(tc: TestCase, psf: PointSpreadFunction, legacy_psf: Any, subimage_bbox: Box | None = None) int#

Compare a PSF model object to its legacy interface.

Parameters#

tc

Test case object with assert methods to use.

psf

Point-spread function to test.

legacy_psf

Legacy lsst.afw.detection.Psf instance to compare with.

subimage_bbox

Bounding box to draw test points from. Defaults to psf.bounds.

Returns#

int

The number of points actually tested.