Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/lsst/ip/diffim/psfMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class NoKernelCandidatesError(pipeBase.AlgorithmError):
"""Raised if there are too few candidates to compute the PSF matching
kernel.
"""

@property
def metadata(self) -> dict:
return {}

Expand Down Expand Up @@ -865,7 +867,7 @@ def _solve(self, kernelCellSet, basisList):
allCellsEmpty = False
break
if allCellsEmpty:
raise NoKernelCandidatesError("All spatial cells are emtpy of candidates")
raise NoKernelCandidatesError("All spatial cells are empty of candidates")

try:
ksv.processKsumDistribution()
Expand Down
12 changes: 12 additions & 0 deletions python/lsst/ip/diffim/subtractImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,18 @@ def _applyExternalCalibrations(self, exposure, visitSummary):

return exposure

def runQuantum(self, butlerQC, inputRefs, outputRefs):
inputs = butlerQC.get(inputRefs)

try:
results = self.run(**inputs)
except lsst.pipe.base.AlgorithmError as e:
error = lsst.pipe.base.AnnotatedPartialOutputsError.annotate(e, self, log=self.log)
# No partial outputs for butler to put
raise error from e

butlerQC.put(results, outputRefs)

@timeMethod
def run(self, template, science, sources, visitSummary=None):
"""PSF match, subtract, and decorrelate two images.
Expand Down