def runQuantum(self, butlerQC, inputRefs, outputRefs):
     inputs = butlerQC.get(inputRefs)
     if 'exposureIdInfo' not in inputs.keys():
         exposureIdInfo = ExposureIdInfo()
         exposureIdInfo.expId, exposureIdInfo.expBits = butlerQC.quantum.dataId.pack(
             "visit_detector", returnMaxBits=True)
         inputs['exposureIdInfo'] = exposureIdInfo
     outputs = self.run(**inputs)
     butlerQC.put(outputs, outputRefs)
Esempio n. 2
0
    def adaptArgsAndRun(self, inputData, inputDataIds, outputDataIds, butler):
        if 'exposureIdInfo' not in inputData.keys():
            packer = butler.registry.makeDataIdPacker("visit_detector",
                                                      inputDataIds['exposure'])
            exposureIdInfo = ExposureIdInfo()
            exposureIdInfo.expId = packer.pack(inputDataIds['exposure'])
            exposureIdInfo.expBits = packer.maxBits
            inputData['exposureIdInfo'] = exposureIdInfo

        return super().adaptArgsAndRun(inputData, inputDataIds, outputDataIds, butler)
Esempio n. 3
0
    def adaptArgsAndRun(self, inputData, inputDataIds, outputDataIds, butler):
        if 'exposureIdInfo' not in inputData.keys():
            packer = butler.registry.makeDataIdPacker("visit_detector",
                                                      inputDataIds['exposure'])
            exposureIdInfo = ExposureIdInfo()
            exposureIdInfo.expId = packer.pack(inputDataIds['exposure'])
            exposureIdInfo.expBits = packer.maxBits
            inputData['exposureIdInfo'] = exposureIdInfo

        return super().adaptArgsAndRun(inputData, inputDataIds, outputDataIds,
                                       butler)
    def adaptArgsAndRun(self, inputData, inputDataIds, outputDataIds, butler):
        if 'exposureIdInfo' not in inputData.keys():
            packer = butler.registry.makeDataIdPacker("VisitDetector",
                                                      inputDataIds['exposure'])
            exposureIdInfo = ExposureIdInfo()
            exposureIdInfo.expId = packer.pack(inputDataIds['exposure'])
            exposureIdInfo.expBits = packer.maxBits
            inputData['exposureIdInfo'] = exposureIdInfo

        if inputData["wcs"] is None:
            inputData["wcs"] = inputData["image"].getWcs()
        if inputData["photoCalib"] is None:
            inputData["photoCalib"] = inputData["image"].getCalib()

        return self.run(**inputData)