assert_visit_images_equal#

lsst.images.tests.assert_visit_images_equal(a, b, *, expect_view=None)#

Assert that two VisitImage instances carry the same persistent state.

Extends assert_masked_images_equal with the VisitImage-specific attributes (PSF, filter, observation info, detector, aperture corrections, photometric scaling, backgrounds, polygon bounds, summary stats) so a round-trip check on a VisitImage does not silently miss differences in any of them.

Parameters:
  • a (VisitImage) – First visit image to compare.

  • b (VisitImage) – Second visit image to compare.

  • expect_view (bool | None, default: None) – If not None, also assert whether b shares memory with a (i.e. is a view).

Return type:

None

This page was last modified on .