ConfigClass = MakeWarpConfig
_DefaultName = "makeWarp"
@utils.inheritDoc(pipeBase.PipelineTask)
def runQuantum(self, butlerQC, inputRefs, outputRefs):
# Read in all inputs.
inputs = butlerQC.get(inputRefs)
# Construct skyInfo expected by `run`. We remove the SkyMap itself
# from the dictionary so we can pass it as kwargs later.
skyMap = inputs.pop("skyMap")
quantumDataId = butlerQC.quantum.dataId
skyInfo = makeSkyInfo(skyMap, tractId=quantumDataId['tract'], patchId=quantumDataId['patch'])
# Construct list of input DataIds expected by `run`
dataIdList = [ref.dataId for ref in inputRefs.calExpList]
# Construct list of packed integer IDs expected by `run`
ccdIdList = [dataId.pack("visit_detector") for dataId in dataIdList]
# Extract integer visitId requested by `run`
visits = [dataId['visit'] for dataId in dataIdList]
assert(all(visits[0] == visit for visit in visits))
visitId = visits[0]
self.prepareCalibratedExposures(**inputs)
results = self.run(**inputs, visitId=visitId, ccdIdList=ccdIdList, dataIdList=dataIdList,
skyInfo=skyInfo)
if self.config.makeDirect:
butlerQC.put(results.exposures["direct"], outputRefs.direct)
if self.config.makePsfMatched:
butlerQC.put(results.exposures["psfMatched"], outputRefs.psfMatched)
def prepareCalibratedExposures(self, calExpList, backgroundList=None, skyCorrList=None):
Definition at line 583 of file makeCoaddTempExp.py.