Skip to content

Commit

Permalink
Merge branch 'tickets/DM-42086'
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Dec 9, 2023
2 parents 1f21874 + a13ba01 commit cc1f95e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/lsst/drp/tasks/assemble_coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,12 @@ def findArtifacts(self, templateCoadd, tempExpRefList, imageScalerList):

if self.config.doFilterMorphological:
maskName = self.config.streakMaskName
# clear single frame streak mask if it exists already
if maskName in warpDiffExp.mask.getMaskPlaneDict():
warpDiffExp.mask.clearMaskPlane(warpDiffExp.mask.getMaskPlane(maskName))
else:
self.log.debug(f"Did not (need to) clear {maskName} mask because it didn't exist")

_ = self.maskStreaks.run(warpDiffExp)
streakMask = warpDiffExp.mask
spanSetStreak = afwGeom.SpanSet.fromMask(
Expand Down

0 comments on commit cc1f95e

Please sign in to comment.