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-5463 #45

Merged
merged 1 commit into from
Apr 29, 2016
Merged
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
8 changes: 0 additions & 8 deletions python/lsst/pipe/tasks/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ def characterize(self, exposure, exposureIdInfo, background=None):
if background is None:
background = BackgroundList()

# make a deep copy of the mask
originalMask = exposure.getMaskedImage().getMask().clone()

# subtract an initial estimate of background level
estBg = estimateBackground(
exposure = exposure,
Expand All @@ -358,11 +355,6 @@ def characterize(self, exposure, exposureIdInfo, background=None):

psfIterations = self.config.psfIterations if self.config.doMeasurePsf else 1
for i in range(psfIterations):
if i > 1:
# restore original mask so that detections and cosmic rays
# are only marked by the final iteration
exposure.getMaskedImage().getMask()[:] = originalMask

dmeRes = self.detectMeasureAndEstimatePsf(
exposure = exposure,
exposureIdInfo = exposureIdInfo,
Expand Down