Skip to content

Commit 9ac055f

Browse files
committed
Defer to camera geometry instead of raw formatter for intiial 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.
1 parent f934455 commit 9ac055f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/activator/middleware_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import lsst.dax.apdb
4949
import lsst.geom
5050
import lsst.obs.base
51+
from lsst.obs.base.utils import createInitialSkyWcsFromBoresight
5152
import lsst.pipe.base
5253
from lsst.pipe.base.quantum_graph_builder import QuantumGraphBuilderError
5354
import lsst.analysis.tools
@@ -446,8 +447,7 @@ def _predict_wcs(self, detector: lsst.afw.cameraGeom.Detector) -> lsst.afw.geom.
446447
except RuntimeError as e:
447448
raise _NoPositionError(str(e)) from e
448449

449-
formatter = self.instrument.getRawFormatter({"detector": detector.getId()})
450-
return formatter.makeRawSkyWcsFromBoresight(boresight_center, orientation, detector)
450+
return createInitialSkyWcsFromBoresight(boresight_center, orientation, detector)
451451

452452
def _compute_region(self) -> lsst.sphgeom.Region:
453453
"""Compute the sky region of this visit for preload

0 commit comments

Comments
 (0)