From 3a0d5e50e17b7de902d256fd0563b09c87507495 Mon Sep 17 00:00:00 2001 From: Jim Bosch Date: Thu, 19 Jun 2025 11:17:05 -0400 Subject: [PATCH] Defer to camera geometry instead of raw formatter for initial WCS. This is a small cleanup (reducing reliance on a middleware interface we'd prefer to stop treating as public) that should only be merged after the 'camera' datasets in all LATISS repos have been rebuilt with post-DM-20746 code. --- python/activator/middleware_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/activator/middleware_interface.py b/python/activator/middleware_interface.py index 9cca829a..34a18360 100644 --- a/python/activator/middleware_interface.py +++ b/python/activator/middleware_interface.py @@ -49,6 +49,7 @@ import lsst.dax.apdb import lsst.geom import lsst.obs.base +from lsst.obs.base.utils import createInitialSkyWcsFromBoresight import lsst.pipe.base from lsst.pipe.base.quantum_graph_builder import QuantumGraphBuilderError import lsst.analysis.tools @@ -488,8 +489,7 @@ def _predict_wcs(self, detector: lsst.afw.cameraGeom.Detector) -> lsst.afw.geom. except RuntimeError as e: raise _NoPositionError(str(e)) from e - formatter = self.instrument.getRawFormatter({"detector": detector.getId()}) - return formatter.makeRawSkyWcsFromBoresight(boresight_center, orientation, detector) + return createInitialSkyWcsFromBoresight(boresight_center, orientation, detector) def _compute_region(self) -> lsst.sphgeom.Region: """Compute the sky region of this visit for preload