Skip to content

Commit

Permalink
fix careless mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
michitaro committed Mar 14, 2019
1 parent ad0a025 commit 81d60d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions python/lsst/pipe/drivers/constructCalibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/drivers/skyCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 81d60d4

Please sign in to comment.