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("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)