Skip to content

Commit

Permalink
Add manual defects in inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
aferte committed Dec 11, 2024
1 parent d863ddc commit 6b2c836
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lsst/cp/pipe/cpDefects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ class MergeDefectsCombinedConnections(pipeBase.PipelineTaskConnections,
multiple=True,
)
inputManualDefects = cT.Input(
name="manual_defects",
name="cpManualDefects",
doc="Additional manual defects.",
storageClass="Defects",
dimensions=("instrument", "detector"),
Expand Down Expand Up @@ -1162,6 +1162,7 @@ def __init__(self, *, config=None):
if config.doManualDefects is not True:
del self.inputManualDefects


class MergeDefectsCombinedTaskConfig(MergeDefectsTaskConfig,
pipelineConnections=MergeDefectsCombinedConnections):
"""Configuration for merging defects from combined exposure.
Expand Down Expand Up @@ -1207,6 +1208,9 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
self.chooseBest(inputs['inputDarkDefects']),
self.chooseBest(inputs['inputBiasDefects'])]

if "inputManualDefects" in inputs.keys():
tempList.extend(inputs["inputManualDefects"])

# Rename inputDefects
inputsCombined = {'inputDefects': tempList, 'camera': inputs['camera']}

Expand Down

0 comments on commit 6b2c836

Please sign in to comment.