Skip to content

DM-20746: Defer to camera geometry instead of raw formatter for intiial WCS. #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/activator/middleware_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down