diff --git a/python/lsst/pipe/drivers/constructCalibs.py b/python/lsst/pipe/drivers/constructCalibs.py index 2d659a1..99e019a 100644 --- a/python/lsst/pipe/drivers/constructCalibs.py +++ b/python/lsst/pipe/drivers/constructCalibs.py @@ -1187,12 +1187,6 @@ def scatterProcess(self, pool, ccdIdLists): backgrounds[visit] = bgModel scales[visit] = np.median(bgModel.getStatsImage().getArray()) - # for debug - if False: - butler = pool._pool._store['process']['butler'] - outputDir = butler._initArgs['outputs']['root'] - bgModel.getStatsImage().writeFits(f"{outputDir}/bgModel-{'-'.join(map(str, visit))}.fits") - return mapToMatrix(pool, self.process, ccdIdLists, backgrounds=backgrounds, scales=scales) def measureBackground(self, cache, dataId): diff --git a/python/lsst/pipe/drivers/skyCorrection.py b/python/lsst/pipe/drivers/skyCorrection.py index 62880bc..c758ebf 100644 --- a/python/lsst/pipe/drivers/skyCorrection.py +++ b/python/lsst/pipe/drivers/skyCorrection.py @@ -186,7 +186,7 @@ def smoothFocalPlaneSubtraction(self, camera, pool, dataIdList): exposures = pool.mapToPrevious(self.subtractModel, dataIdList, bgModel) return exposures - def loadImage(self, cache, dataId, outputDir): + def loadImage(self, cache, dataId): """Load original image and restore the sky This method runs on the slave nodes.