compare_visit_image_to_legacy#

lsst.images.tests.compare_visit_image_to_legacy(visit_image, legacy_exposure, *, plane_map=None, expect_view=None, instrument, visit, detector, applied_legacy_photo_calib=None, alternates=None)#

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

Parameters:
  • visit_image (VisitImage) – New image to test.

  • legacy_exposure (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.

  • instrument (str) – Expected instrument name.

  • visit (int) – Expected visit ID.

  • detector (int) – Expected detector ID.

  • applied_legacy_photo_calib (TypeAliasType | None, default: None) – Legacy lsst.afw.image.PhotoCalib already applied to legacy_exposure, used when comparing photometric scaling.

  • 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 .