From f03f4a907e5e05fb8ae02be4a39fdd2ae2277a1c Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Wed, 25 Mar 2026 17:40:10 +0200 Subject: [PATCH 1/2] use actual focus instead of the one that was set --- pyobs/modules/focus/focusseries.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyobs/modules/focus/focusseries.py b/pyobs/modules/focus/focusseries.py index 302b730d..cc614b67 100644 --- a/pyobs/modules/focus/focusseries.py +++ b/pyobs/modules/focus/focusseries.py @@ -193,10 +193,16 @@ async def _auto_focus(self, count: int, step: float, exposure_time: float, **kwa log.info("Downloading image...") image = await self.vfs.read_image(filename) + # get actual focus + if self._offset: + actual_focus = await focuser.get_focus_offset() + else: + actual_focus = await focuser.get_focus() + # analyse log.info("Analysing picture...") try: - await self._series.analyse_image(image, foc) + await self._series.analyse_image(image, actual_focus) except: # do nothing... log.info("Could not analyse image.") From 96268cf4a8f72c1cffad67bc59f6dc6730814c2a Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Wed, 25 Mar 2026 17:40:22 +0200 Subject: [PATCH 2/2] v1.39.9 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 908680c4..278a3e09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyobs-core" -version = "1.39.8" +version = "1.39.9" description = "robotic telescope software" authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }] requires-python = ">=3.11" diff --git a/uv.lock b/uv.lock index 59a5b9b9..c08e25b2 100644 --- a/uv.lock +++ b/uv.lock @@ -2254,7 +2254,7 @@ wheels = [ [[package]] name = "pyobs-core" -version = "1.39.8" +version = "1.39.9" source = { editable = "." } dependencies = [ { name = "aiohttp" },