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) – Legacy lsst.afw.detection.Psf instance 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) – If True, expect legacy_psf to raise lsst.afw.detection.InvalidPsfError when evaluated at a position considered out-of-bounds by psf.

Returns:

The number of points actually tested.

Return type:

int

This page was last modified on .