compare_masked_image_to_legacy#

lsst.images.tests.compare_masked_image_to_legacy(masked_image, legacy_masked_image, *, plane_map=None, expect_view=None, alternates=None)#

Compare a MaskedImage object to a legacy lsst.afw.image.MaskedImage object.

Parameters:
  • masked_image (MaskedImage) – New image to test.

  • legacy_masked_image (Any) – Legacy image to test against.

  • plane_map (Mapping[str, MaskPlane] | None, default: None) – Mapping between new and legacy mask planes.

  • expect_view (bool | None, default: None) – Whether to test that the image and variance arrays do or do not share memory.

  • alternates (Mapping[str, Any] | None, default: None) – A mapping of other versions of one or more (new) components to also check against the legacy versions of those components.

Return type:

None

This page was last modified on .