assert_cell_coadds_equal#

lsst.images.tests.assert_cell_coadds_equal(a, b, *, expect_view=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:
  • a (CellCoadd) – First cell coadd to compare.

  • b (CellCoadd) – Second cell coadd to compare.

  • expect_view (bool | None, default: None) – If not None, also assert whether b shares memory with a (i.e. is a view).

Return type:

None

This page was last modified on .