compare_psf_to_legacy#
- lsst.images.tests.compare_psf_to_legacy(psf, legacy_psf, points=None, expect_legacy_raise_on_out_of_bounds=False)#
Compare a PSF model object to its legacy interface.
- Parameters:
psf (
PointSpreadFunction) – Point-spread function to test.legacy_psf (
Any) – Legacylsst.afw.detection.Psfinstance to compare with.points (
Union[YX[ndarray],XY[ndarray],None], default:None) – Points to evaluate the PSFs at. If not provided, the intersection of the PSF bounding boxes are used to generate points on a grid.expect_legacy_raise_on_out_of_bounds (
bool, default:False) – IfTrue, expectlegacy_psfto raiselsst.afw.detection.InvalidPsfErrorwhen evaluated at a position considered out-of-bounds bypsf.
- Returns:
The number of points actually tested.
- Return type: