assert_images_equal#

lsst.images.tests.assert_images_equal(a, b, *, rtol=0.0, atol=0.0, expect_view=None)#

Assert that two images are equal or nearly equal.

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

  • b (Image) – Second image to compare.

  • rtol (float, default: 0.0) – Relative tolerance for the pixel comparison.

  • atol (float, default: 0.0) – Absolute tolerance for the pixel comparison.

  • expect_view (Union[bool, Literal['array'], None], default: None) – If not None, also assert whether b shares memory with a (i.e. is a view); "array" checks only the pixel arrays.

Return type:

None

This page was last modified on .