Skip to content

Commit

Permalink
Harmonisation of getTemplate method names. Add missing data product d…
Browse files Browse the repository at this point in the history
…imensions.
  • Loading branch information
Gabor Kovacs committed Mar 17, 2020
1 parent 1177cbd commit 7e86c37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/pipe/tasks/imageDifference.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class ImageDifferenceTaskConnections(pipeBase.PipelineTaskConnections,
storageClass="ExposureF",
name="{fakesType}{coaddName}Coadd{warpTypeSuffix}",
multiple=True,
deferLoad=True
)
subtractedExposure = pipeBase.connectionTypes.Output(
doc="Output difference image",
Expand All @@ -91,6 +92,7 @@ class ImageDifferenceTaskConnections(pipeBase.PipelineTaskConnections,
)
diaSources = pipeBase.connectionTypes.Output(
doc="Output detected diaSources on the difference image",
dimensions=("instrument", "visit", "detector"),
storageClass="SourceCatalog",
name="{fakesType}{coaddName}Diff_diaSrc",
)
Expand Down Expand Up @@ -403,7 +405,7 @@ def runQuantum(self, butlerQC: pipeBase.ButlerQuantumContext,
expId, expBits = butlerQC.quantum.dataId.pack("visit_detector",
returnMaxBits=True)
idFactory = self.makeIdFactory(expId=expId, expBits=expBits)
templateStruct = self.getTemplate.runGen3(
templateStruct = self.getTemplate.runQuantum(
inputs['exposure'], butlerQC, inputRefs.skyMap, inputRefs.coaddExposures
)

Expand Down Expand Up @@ -459,7 +461,7 @@ def runDataRef(self, sensorRef, templateIdList=None):
exposure = sensorRef.get("calexp", immediate=True)

# Retrieve the template image
template = self.getTemplate.run(exposure, sensorRef, templateIdList=templateIdList)
template = self.getTemplate.runDataRef(exposure, sensorRef, templateIdList=templateIdList)

if sensorRef.datasetExists("src"):
self.log.info("Source selection via src product")
Expand Down

0 comments on commit 7e86c37

Please sign in to comment.