Skip to content

Commit

Permalink
Replace use of <<= with assign as per DM-4102
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenam committed Feb 17, 2016
1 parent a0c0dbf commit 87d22ef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/lsst/pipe/tasks/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,12 @@ def cosmicRay(self, exposure, keepCRs=None):
psf, bg, pexConfig.makePolicy(self.config.cosmicray), keepCRs)
if bkgd:
# Add back background image
img = exposure.getMaskedImage().getImage()
img = exposure.getMaskedImage()
img += bkgd.getImageF()
del img
# Replace original image with CR subtracted image
mimg = exposure0.getMaskedImage()
mimg <<= exposure.getMaskedImage()
del mimg
exposure0.getMaskedImage().assign(exposure.getMaskedImage())

except Exception:
if display:
import lsst.afw.display.ds9 as ds9
Expand All @@ -285,4 +284,3 @@ def cosmicRay(self, exposure, keepCRs=None):
displayUtils.drawBBox(cr.getBBox(), borderWidth=0.55)

self.log.info("Identified %s cosmic rays." % (num,))

0 comments on commit 87d22ef

Please sign in to comment.