assert_masked_images_equal#

lsst.images.tests.assert_masked_images_equal(tc: TestCase, a: MaskedImage, b: MaskedImage, *, rtol: float = 0.0, atol: float = 0.0, expect_view: bool | None = None) None#

Assert that two masked images are equal or nearly equal.

Parameters#

tc

Test case providing the assertion methods to use.

a

First masked image to compare.

b

Second masked image to compare.

rtol

Relative tolerance for the pixel comparison.

atol

Absolute tolerance for the pixel comparison.

expect_view

If not None, also assert whether b shares memory with a (i.e. is a view).