From b005db9ef399c1b2432fbd14b940cdd353609323 Mon Sep 17 00:00:00 2001 From: fred3m Date: Wed, 3 Sep 2025 14:14:46 -0700 Subject: [PATCH] Decorate errors with property In modelPsfMatch.py there are two errors with metadata but they are not properties. This fixes the error so that they work properly in AnnotatedPartialOutputsErrors. --- python/lsst/ip/diffim/modelPsfMatch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/ip/diffim/modelPsfMatch.py b/python/lsst/ip/diffim/modelPsfMatch.py index e126e561d..18490fe8e 100644 --- a/python/lsst/ip/diffim/modelPsfMatch.py +++ b/python/lsst/ip/diffim/modelPsfMatch.py @@ -54,6 +54,7 @@ class WarpedPsfTransformTooBigError(pipeBase.AlgorithmError): """Raised when the transform of a WarpedPsf is too large to compute the FWHM of the PSF at a given position. """ + @property def metadata(self) -> dict: return {} @@ -64,6 +65,7 @@ def __init__(self, position): super().__init__(message) self.position = position + @property def metadata(self) -> dict: return { "position": self.position,