From 340e06690289d6cacbb7039a5d28e8180d76820f Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Wed, 8 May 2024 20:30:58 +0200 Subject: [PATCH 1/5] v1.13.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b2e770b5..12ee6d6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "pyobs-core" packages = [{ include = "pyobs" }] -version = "1.13.0" +version = "1.13.1" description = "robotic telescope software" authors = ["Tim-Oliver Husser "] license = "MIT" From 1bdaac8f8944fc3ef2fdffa31236c1999dbd0a27 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Wed, 8 May 2024 20:54:23 +0200 Subject: [PATCH 2/5] fixed bug --- pyobs/modules/weather/weather.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyobs/modules/weather/weather.py b/pyobs/modules/weather/weather.py index c8f14db8..4eba66b5 100644 --- a/pyobs/modules/weather/weather.py +++ b/pyobs/modules/weather/weather.py @@ -54,8 +54,7 @@ def __init__(self, url: str, system_init_time: int = 300, **kwargs: Any): self._weather = WeatherState() # add thread func - self.add_background_task(self._update, True) - + self.add_background_task(self._run, True) async def open(self) -> None: """Open module.""" @@ -108,7 +107,7 @@ async def _update(self) -> None: self._weather.status = await self._api.get_current_status() except Exception as e: log.warning("Request failed: %s", str(e)) - self._weather.is_good = False # on error, we're always bad + self._weather.is_good = False # on error, we're always bad if was_good != self._weather.is_good and self._active: if self._weather.is_good: From 6e0b17b5d0f11c96cbbfa52bcf27d37599990567 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Wed, 8 May 2024 20:54:34 +0200 Subject: [PATCH 3/5] v1.13.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 12ee6d6e..8116aef9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "pyobs-core" packages = [{ include = "pyobs" }] -version = "1.13.1" +version = "1.13.2" description = "robotic telescope software" authors = ["Tim-Oliver Husser "] license = "MIT" From b96a48a0d62324858d0548e29a1241cf1813a801 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Fri, 10 May 2024 19:07:23 +0200 Subject: [PATCH 4/5] give warning, if no ra/dec are given --- pyobs/robotic/lco/taskarchive.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyobs/robotic/lco/taskarchive.py b/pyobs/robotic/lco/taskarchive.py index f84d04d0..b7cc71d3 100644 --- a/pyobs/robotic/lco/taskarchive.py +++ b/pyobs/robotic/lco/taskarchive.py @@ -111,7 +111,11 @@ async def get_schedulable_blocks(self) -> List[ObservingBlock]: # target t = cfg["target"] - target = SkyCoord(t["ra"] * u.deg, t["dec"] * u.deg, frame=t["type"].lower()) + if "ra" in t and "dec" in t: + target = SkyCoord(t["ra"] * u.deg, t["dec"] * u.deg, frame=t["type"].lower()) + else: + log.warning("Unsupported coordinate type.") + continue # constraints c = cfg["constraints"] From 41c540e8eb6fd816efcd6ef02f7155f4e5fa38e7 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Fri, 10 May 2024 19:07:32 +0200 Subject: [PATCH 5/5] v1.13.3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8116aef9..736ff8aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "pyobs-core" packages = [{ include = "pyobs" }] -version = "1.13.2" +version = "1.13.3" description = "robotic telescope software" authors = ["Tim-Oliver Husser "] license = "MIT"