Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-7477: Increase mask plane size to 32 bits #42

Merged
merged 1 commit into from
Jul 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/symmFootprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main():
foot = buildExample2()

fbb = foot.getBBox()
mask1 = afwImg.MaskU(fbb.getWidth(), fbb.getHeight())
mask1 = afwImg.Mask(fbb.getWidth(), fbb.getHeight())
mask1.setXY0(fbb.getMinX(), fbb.getMinY())
afwDet.setMaskFromFootprint(mask1, foot, 1)

Expand All @@ -29,7 +29,7 @@ def main():

sfoot = butils.symmetrizeFootprint(foot, 355, 227)

mask2 = afwImg.MaskU(fbb.getWidth(), fbb.getHeight())
mask2 = afwImg.Mask(fbb.getWidth(), fbb.getHeight())
mask2.setXY0(fbb.getMinX(), fbb.getMinY())
afwDet.setMaskFromFootprint(mask2, sfoot, 1)

Expand Down
4 changes: 2 additions & 2 deletions python/lsst/meas/deblender/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def fitPsfs(debResult, log, psfChisqCut1=1.5, psfChisqCut2=1.5, psfChisqCut2b=1.
cpsf = CachingPsf(dp.psf)

# create mask image for pixels within the footprint
fmask = afwImage.MaskU(dp.bb)
fmask = afwImage.Mask(dp.bb)
fmask.setXY0(dp.bb.getMinX(), dp.bb.getMinY())
dp.fp.spans.setMask(fmask, 1)

Expand Down Expand Up @@ -195,7 +195,7 @@ def _fitPsf(fp, fmask, pk, pkF, pkres, fbb, peaks, peaksF, log, psf, psffwhm,
----------
fp: `afw.detection.Footprint`
Footprint containing the Peaks to model.
fmask: `afw.image.MaskU`
fmask: `afw.image.Mask`
The Mask plane for pixels in the Footprint
pk: `afw.detection.PeakRecord`
The peak within the Footprint that we are going to fit with PSF model
Expand Down
2 changes: 1 addition & 1 deletion tests/testFitPsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test1(self):
fbb = fp.getBBox()
print('fbb', fbb.getMinX(), fbb.getMaxX(), fbb.getMinY(), fbb.getMaxY())

fmask = afwImage.MaskU(fbb)
fmask = afwImage.Mask(fbb)
fmask.setXY0(fbb.getMinX(), fbb.getMinY())
fp.spans.setMask(fmask, 1)

Expand Down