Skip to content

Commit

Permalink
DM-17098
Browse files Browse the repository at this point in the history
  • Loading branch information
michitaro committed Feb 13, 2019
1 parent 014233a commit 7ce5656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/pipe/drivers/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ def measureScale(self, image, skyBackground):
statistic = afwMath.stringToStatisticsProperty(self.config.stats.statistic)
imageSamples = []
skySamples = []
for xStart, yStart, xStop, yStop in zip(xLimits[:-1], yLimits[:-1], xLimits[1:], yLimits[1:]):
for xIndex, yIndex in itertools.product(range(self.config.xNumSamples), range(self.config.yNumSamples)):
xStart, xStop = xLimits[xIndex : xIndex + 2]
yStart, yStop = yLimits[yIndex : yIndex + 2]
box = afwGeom.Box2I(afwGeom.Point2I(xStart, yStart), afwGeom.Point2I(xStop, yStop))
subImage = image.Factory(image, box)
subSky = sky.Factory(sky, box)
Expand Down

0 comments on commit 7ce5656

Please sign in to comment.