From c7b480eede7d9aed9ff3a35ad40ed0c14b54d694 Mon Sep 17 00:00:00 2001 From: Marco Rocchietti Date: Fri, 18 Oct 2024 14:31:42 -0300 Subject: [PATCH] Improve logging in `FocusSweepLatiss.configure`. --- .../auxtel/focus_sweep_latiss.py | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/python/lsst/ts/standardscripts/auxtel/focus_sweep_latiss.py b/python/lsst/ts/standardscripts/auxtel/focus_sweep_latiss.py index 3dab12dcd..7cdcd05f1 100644 --- a/python/lsst/ts/standardscripts/auxtel/focus_sweep_latiss.py +++ b/python/lsst/ts/standardscripts/auxtel/focus_sweep_latiss.py @@ -111,20 +111,24 @@ async def configure(self, config): Script configuration, as defined by `schema`. """ await super().configure(config=config) - self.log.debug("Applying unit translation from um to mm for ATHexapod use.") - self.log.debug( - "Original values in um from base class configuration are:\n " - f"focus_window = {self.config.focus_window} um\n" - f"focus_step_sequence = {self.config.focus_step_sequence} um" - ) + original_focus_window = self.config.focus_window + original_focus_step_sequence = self.config.focus_step_sequence self.config.focus_window *= 0.001 # Transform from um to mm self.config.focus_step_sequence = [ step * 0.001 for step in self.config.focus_step_sequence # Transform to mm ] self.log.debug( - "Translated values:\n " - f"focus_window = {self.config.focus_window} mm\n" - f"focus_step_sequence = {self.config.focus_step_sequence} mm" + f"""Applying unit conversion from um to mm for ATHexapod use. + + Original values in um from base class configuration are: + + focus_window = {original_focus_window} um + focus_step_sequence = {original_focus_step_sequence} um + + Converted values: + focus_window = {self.config.focus_window} mm + focus_step_sequence = {self.config.focus_step_sequence} mm + """ ) def get_instrument_configuration(self) -> dict: