diff --git a/python/activator/middleware_interface.py b/python/activator/middleware_interface.py index 973198fc..b7ec9753 100644 --- a/python/activator/middleware_interface.py +++ b/python/activator/middleware_interface.py @@ -48,6 +48,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 @@ -449,8 +450,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