Skip to content

Commit

Permalink
Merge branch 'tickets/DM-43370'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Jun 6, 2024
2 parents 58dd22a + 857c40a commit 5d17e6b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/lsst/ip/diffim/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DetectAndMeasureConnections(pipeBase.PipelineTaskConnections,
name="{fakesType}{coaddName}Diff_differenceExp",
)
maskedStreaks = pipeBase.connectionTypes.Output(
doc='Streak profile information.',
doc='Catalog of streak fit parameters for the difference image.',
storageClass="ArrowNumpyDict",
dimensions=("instrument", "visit", "detector"),
name="{fakesType}{coaddName}Diff_streaks",
Expand Down Expand Up @@ -161,7 +161,7 @@ class DetectAndMeasureConfig(pipeBase.PipelineTaskConfig,
)
doMaskStreaks = pexConfig.Field(
dtype=bool,
default=False,
default=True,
doc="Turn on streak masking",
)
maskStreaks = pexConfig.ConfigurableField(
Expand Down Expand Up @@ -332,7 +332,7 @@ def run(self, science, matchedTemplate, difference,

# Ensure that we start with an empty detection and deblended mask.
mask = difference.mask
clearMaskPlanes = ["DETECTED", "DETECTED_NEGATIVE", "NOT_DEBLENDED"]
clearMaskPlanes = ["DETECTED", "DETECTED_NEGATIVE", "NOT_DEBLENDED", "STREAK"]
for mp in clearMaskPlanes:
if mp not in mask.getMaskPlaneDict():
mask.addMaskPlane(mp)
Expand Down Expand Up @@ -624,7 +624,8 @@ def calculateMetrics(self, difference):
self.log.info("Unable to calculate metrics for mask plane %s: not in image"%maskPlane)

def _runStreakMasking(self, maskedImage):
"""Do streak masking at put results into catalog.
"""Do streak masking and optionally save the resulting streak
fit parameters in a catalog.
Parameters
----------
Expand Down

0 comments on commit 5d17e6b

Please sign in to comment.