assert_masked_images_equal#
- lsst.images.tests.assert_masked_images_equal(a, b, *, rtol=0.0, atol=0.0, expect_view=None)#
Assert that two masked images are equal or nearly equal.
- Parameters:
a (
MaskedImage) – First masked image to compare.b (
MaskedImage) – Second masked 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 (
bool|None, default:None) – If notNone, also assert whetherbshares memory witha(i.e. is a view).
- Return type: