assert_visit_images_equal#
- lsst.images.tests.assert_visit_images_equal(tc: TestCase, a: VisitImage, b: VisitImage, *, expect_view: bool | None = None) None#
Assert that two
VisitImageinstances carry the same persistent state.Extends
assert_masked_images_equalwith the VisitImage-specific attributes (PSF, filter, observation info, detector, aperture corrections, photometric scaling, backgrounds, polygon bounds, summary stats) so a round-trip check on aVisitImagedoes not silently miss differences in any of them.Parameters#
- tc
Test case providing the assertion methods to use.
- a
First visit image to compare.
- b
Second visit image to compare.
- expect_view
If not
None, also assert whetherbshares memory witha(i.e. is a view).