Skip to content

Commit d055d7b

Browse files
authored
Merge pull request #323 from lsst-dm/tickets/DM-20746
DM-20746: Defer to camera geometry instead of raw formatter for intiial WCS.
2 parents 2b2055e + 6611130 commit d055d7b

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
@@ -49,6 +49,7 @@
4949
import lsst.dax.apdb
5050
import lsst.geom
5151
import lsst.obs.base
52+
from lsst.obs.base.utils import createInitialSkyWcsFromBoresight
5253
import lsst.pipe.base
5354
from lsst.pipe.base.quantum_graph_builder import QuantumGraphBuilderError
5455
import lsst.analysis.tools
@@ -486,8 +487,7 @@ def _predict_wcs(self, detector: lsst.afw.cameraGeom.Detector) -> lsst.afw.geom.
486487
except RuntimeError as e:
487488
raise _NoPositionError(str(e)) from e
488489

489-
formatter = self.instrument.getRawFormatter({"detector": detector.getId()})
490-
return formatter.makeRawSkyWcsFromBoresight(boresight_center, orientation, detector)
490+
return createInitialSkyWcsFromBoresight(boresight_center, orientation, detector)
491491

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

0 commit comments

Comments
 (0)