compare_masked_image_to_legacy#
- lsst.images.tests.compare_masked_image_to_legacy(tc: TestCase, masked_image: MaskedImage, legacy_masked_image: Any, *, plane_map: Mapping[str, MaskPlane] | None = None, expect_view: bool | None = None, alternates: Mapping[str, Any] | None = None) None#
Compare a
MaskedImageobject to a legacylsst.afw.image.MaskedImageobject.Parameters#
- tc
Test case to use for asserts.
- masked_image
New image to test.
- legacy_masked_image
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.
- alternates
A mapping of other versions of one or more (new) components to also check against the legacy versions of those components.