pyobs-brot 2.0.0.dev6__tar.gz → 2.0.0.dev7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/PKG-INFO +1 -1
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brotroof.py +4 -3
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brottelescope.py +4 -3
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/pyproject.toml +1 -1
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/uv.lock +1 -1
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/.github/workflows/pypi.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/.github/workflows/ruff.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/.gitignore +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/.pre-commit-config.yaml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/.readthedocs.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/LICENSE +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/README.md +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/Makefile +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/make.bat +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/requirements.txt +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/source/_static/pyobs.gif +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/source/conf.py +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/docs/source/index.rst +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/pyobs_brot/__init__.py +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brotdome.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobs-brot
|
|
3
|
-
Version: 2.0.0.
|
|
3
|
+
Version: 2.0.0.dev7
|
|
4
4
|
Summary: pyobs module for BROTlib telescopes
|
|
5
5
|
Author-email: Tim-Oliver Husser <thusser@uni-goettingen.de>, Lukas Melzig <lukas.melzig@stud.uni-goettingen.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -46,7 +46,7 @@ class BrotRoof(BaseRoof):
|
|
|
46
46
|
# check whats up
|
|
47
47
|
match self.brot.roof.status:
|
|
48
48
|
case RoofStatus.ERROR:
|
|
49
|
-
await self._error_state()
|
|
49
|
+
await self._error_state(log_once=True)
|
|
50
50
|
case RoofStatus.CLOSED:
|
|
51
51
|
await self._change_motion_status(MotionStatus.PARKED)
|
|
52
52
|
case RoofStatus.OPENING:
|
|
@@ -100,8 +100,9 @@ class BrotRoof(BaseRoof):
|
|
|
100
100
|
async def stop_motion(self, device: str | None = None, **kwargs: Any) -> None:
|
|
101
101
|
await self.brot.roof.stop()
|
|
102
102
|
|
|
103
|
-
async def _error_state(self, mess: str = "Roof is in error state.") -> None:
|
|
104
|
-
|
|
103
|
+
async def _error_state(self, mess: str = "Roof is in error state.", log_once: bool = False) -> None:
|
|
104
|
+
if not log_once or self.motion_status() != MotionStatus.ERROR:
|
|
105
|
+
log.error(mess)
|
|
105
106
|
await self._change_motion_status(MotionStatus.ERROR)
|
|
106
107
|
|
|
107
108
|
|
|
@@ -127,7 +127,7 @@ class BrotBaseTelescope(
|
|
|
127
127
|
await self._change_motion_status(MotionStatus.POSITIONED)
|
|
128
128
|
await self.comm.set_state(IReady, ReadyState(ready=True))
|
|
129
129
|
case TelescopeStatus.ERROR:
|
|
130
|
-
await self._error_state()
|
|
130
|
+
await self._error_state(log_once=True)
|
|
131
131
|
await self.comm.set_state(IReady, ReadyState(ready=False))
|
|
132
132
|
|
|
133
133
|
# publish pointing state
|
|
@@ -147,8 +147,9 @@ class BrotBaseTelescope(
|
|
|
147
147
|
if readings:
|
|
148
148
|
await self.comm.set_state(ITemperatures, TemperaturesState(readings=readings))
|
|
149
149
|
|
|
150
|
-
async def _error_state(self, mess: str = "Telescope is in error state.") -> None:
|
|
151
|
-
|
|
150
|
+
async def _error_state(self, mess: str = "Telescope is in error state.", log_once: bool = False) -> None:
|
|
151
|
+
if not log_once or self.motion_status() != MotionStatus.ERROR:
|
|
152
|
+
log.error(mess)
|
|
152
153
|
await self._change_motion_status(MotionStatus.ERROR)
|
|
153
154
|
|
|
154
155
|
async def _wait_for_tracking(self) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyobs-brot"
|
|
3
|
-
version = "2.0.0.
|
|
3
|
+
version = "2.0.0.dev7"
|
|
4
4
|
description = "pyobs module for BROTlib telescopes"
|
|
5
5
|
authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }, { name = "Lukas Melzig", email = "lukas.melzig@stud.uni-goettingen.de" }]
|
|
6
6
|
requires-python = ">=3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|