Skip to content

Commit 04e963e

Browse files
authored
v1.5.0
version 1.5.0
2 parents 08207a8 + 241018b commit 04e963e

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

pyobs_pilar/pilartelescope.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212

1313
from pyobs.mixins import FitsNamespaceMixin
1414
from pyobs.events import FilterChangedEvent, OffsetsAltAzEvent
15-
from pyobs.interfaces import IFilters, IFocuser, ITemperatures, IOffsetsAltAz, IPointingSeries
15+
from pyobs.interfaces import (
16+
IFocuser,
17+
ITemperatures,
18+
IOffsetsAltAz,
19+
IPointingSeries,
20+
IPointingRaDec,
21+
IPointingAltAz,
22+
)
1623
from pyobs.modules import timeout
1724
from pyobs.modules.telescope.basetelescope import BaseTelescope
1825
from pyobs.utils.enums import MotionStatus, ModuleState
@@ -34,7 +41,16 @@ class InfuxConfig(NamedTuple):
3441

3542

3643
# TODO: use asyncio in driver directly
37-
class PilarTelescope(BaseTelescope, IOffsetsAltAz, IFocuser, ITemperatures, IPointingSeries, FitsNamespaceMixin):
44+
class PilarTelescope(
45+
BaseTelescope,
46+
IPointingRaDec,
47+
IPointingAltAz,
48+
IOffsetsAltAz,
49+
IFocuser,
50+
ITemperatures,
51+
IPointingSeries,
52+
FitsNamespaceMixin,
53+
):
3854
def __init__(
3955
self,
4056
host: str,
@@ -224,7 +240,11 @@ async def _pilar_update(self) -> None:
224240
await self._change_motion_status(MotionStatus.INITIALIZING)
225241
else:
226242
# only check motion state, if currently in an undefined state, error or initializing
227-
if await self.get_motion_status() in [MotionStatus.UNKNOWN, MotionStatus.ERROR, MotionStatus.INITIALIZING]:
243+
if await self.get_motion_status() in [
244+
MotionStatus.UNKNOWN,
245+
MotionStatus.ERROR,
246+
MotionStatus.INITIALIZING,
247+
]:
228248
# telescope is initialized, check motion state
229249
ms = int(self._status["TELESCOPE.MOTION_STATE"])
230250
if ms & (1 << 1):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyobs-pilar"
3-
version = "1.4.0"
3+
version = "1.5.0"
44
description = "pyobs module for Pilar TCS"
55
authors = ["Tim-Oliver Husser <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)