Skip to content

Commit

Permalink
Merge pull request #276 from lsst/tickets/DM-44267
Browse files Browse the repository at this point in the history
DM-44267: Add dummy wcs to ForcedPhotCcdFromDataFrameTask.
  • Loading branch information
erykoff authored May 9, 2024
2 parents ed0e8a7 + 19a9e66 commit b4b16ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/lsst/meas/base/forcedPhotCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ class ForcedPhotCcdFromDataFrameConnections(PipelineTaskConnections,
storageClass="ExposureCatalog",
dimensions=("instrument", "visit"),
)
skyMap = cT.Input(
doc="SkyMap dataset that defines the coordinate system of the reference catalog.",
name=BaseSkyMap.SKYMAP_DATASET_TYPE_NAME,
storageClass="SkyMap",
dimensions=["skymap"],
)
measCat = cT.Output(
doc="Output forced photometry catalog.",
name="forced_src_diaObject",
Expand Down Expand Up @@ -550,8 +556,9 @@ def __init__(self, refSchema=None, initInputs=None, **kwargs):
def runQuantum(self, butlerQC, inputRefs, outputRefs):
inputs = butlerQC.get(inputRefs)

# When run with dataframes, we do not need a reference wcs.
inputs['refWcs'] = None
tract = butlerQC.quantum.dataId["tract"]
skyMap = inputs.pop("skyMap")
inputs["refWcs"] = skyMap[tract].getWcs()

# Connections only exist if they are configured to be used.
skyCorr = inputs.pop('skyCorr', None)
Expand Down

0 comments on commit b4b16ee

Please sign in to comment.