Skip to content

Commit

Permalink
Improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Feb 6, 2024
1 parent 989d6c6 commit 8f86930
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lvmguider/actor/commands/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ async def adjust_focus(
relative = False
else:
delta_t = c_temp - command.actor._reference_focus.temperature
command.debug(f"Setting focus based on delta temperare: {delta_t:.2f}")
command.debug(
f"Reference temperature: {c_temp:.2f} C. "
f"Delta temperature: {delta_t:.2f} C."
)

focus_model_a: float = command.actor.config["focus.model.a"]
focus_value = delta_t * focus_model_a
Expand All @@ -152,4 +155,4 @@ async def adjust_focus(
time(),
)

return command.finish(f"Focus adjusted to {focus_value:.2f}.")
return command.finish(f"Focus adjusted to {focus_value:.2f} DT.")

0 comments on commit 8f86930

Please sign in to comment.