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-31275 Allow for missing inputs when deblending #560

Merged
merged 1 commit into from
Aug 2, 2021
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
5 changes: 4 additions & 1 deletion python/lsst/pipe/tasks/deblendCoaddSourcesPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
sortedTemplateCatalogs = []
for outRef in outputRefs.templateCatalogs:
band = outRef.dataId['band']
sortedTemplateCatalogs.append(outputs.templateCatalogs[band])
# use the .get method because if the key does not exist, it will return
# None, putting None is the same as not putting something, and down-stream
# tasks can use that as a signal the dataset was not processed
sortedTemplateCatalogs.append(outputs.templateCatalogs.get(band))
outputs.templateCatalogs = sortedTemplateCatalogs
butlerQC.put(outputs, outputRefs)

Expand Down