assert_images_equal#

lsst.images.tests.assert_images_equal(tc: TestCase, a: Image, b: Image, *, rtol: float = 0.0, atol: float = 0.0, expect_view: bool | Literal['array'] | None = None) None#

Assert that two images are equal or nearly equal.

Parameters#

tc

Test case providing the assertion methods to use.

a

First image to compare.

b

Second 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); "array" checks only the pixel arrays.