assert_cell_coadds_equal#

lsst.images.tests.assert_cell_coadds_equal(tc: TestCase, a: CellCoadd, b: CellCoadd, *, expect_view: bool | None = None) None#

Assert that two CellCoadd instances carry the same persistent state.

Extends the masked-image-style equality check with the CellCoadd-specific attributes (PSF, cell grid, missing cells, backgrounds, patch/tract, band) so a round-trip check does not silently miss differences in any of them.

Parameters#

tc

Test case providing the assertion methods to use.

a

First cell coadd to compare.

b

Second cell coadd to compare.

expect_view

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