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.") 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" },