From f87ff02ad7fae8a667d464ec52fcd583eedf28a7 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 2 Nov 2024 00:56:09 -0700 Subject: [PATCH] In maintel/apply_dof, fix configure method to skip parameters that are not DOFName.t --- python/lsst/ts/standardscripts/maintel/apply_dof.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/lsst/ts/standardscripts/maintel/apply_dof.py b/python/lsst/ts/standardscripts/maintel/apply_dof.py index aea28ecb..ea86c566 100644 --- a/python/lsst/ts/standardscripts/maintel/apply_dof.py +++ b/python/lsst/ts/standardscripts/maintel/apply_dof.py @@ -418,7 +418,10 @@ async def configure(self, config) -> None: else: # Loop through properties and assign their values to the vector for key, value in vars(config).items(): - self.dofs[getattr(DOFName, key)] = value + if hasattr(DOFName, key): + self.dofs[getattr(DOFName, key)] = value + else: + self.log.warning(f"{key} is not a DOFName, ignoring.") for comp in getattr(config, "ignore", []): if comp not in self.mtcs.components_attr: