compare_visit_image_to_legacy#

lsst.images.tests.compare_visit_image_to_legacy(tc: TestCase, visit_image: VisitImage, legacy_exposure: Any, *, plane_map: Mapping[str, MaskPlane] | None = None, expect_view: bool | None = None, instrument: str, visit: int, detector: int, alternates: Mapping[str, Any] | None = None) None#

Compare a VisitImage object to a legacy lsst.afw.image.Exposure object.

Parameters#

tc

Test case to use for asserts.

visit_image

New image to test.

legacy_exposure

Legacy image to test against.

plane_map

Mapping between new and legacy mask planes.

expect_view

Whether to test that the image and variance arrays do or do not share memory.

instrument

Expected instrument name.

visit

Expected visit ID.

detector

Expected detector ID.

alternates

A mapping of other versions of one or more (new) components to also check against the legacy versions of those components.