Skip to content

Commit

Permalink
In maintel/apply_dof, fix configure method to skip parameters that ar…
Browse files Browse the repository at this point in the history
…e not DOFName.t
  • Loading branch information
tribeiro committed Nov 4, 2024
1 parent 8490812 commit f87ff02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/ts/standardscripts/maintel/apply_dof.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f87ff02

Please sign in to comment.