pyobs-brot 2.0.0.dev5__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.dev5 → pyobs_brot-2.0.0.dev7}/PKG-INFO +1 -1
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brotroof.py +4 -3
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brottelescope.py +4 -3
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyproject.toml +1 -1
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/uv.lock +4 -4
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.github/workflows/pypi.yml +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.github/workflows/ruff.yml +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.gitignore +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.pre-commit-config.yaml +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.readthedocs.yml +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/LICENSE +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/README.md +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/Makefile +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/make.bat +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/requirements.txt +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/_static/pyobs.gif +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/conf.py +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/index.rst +0 -0
- {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/__init__.py +0 -0
- {pyobs_brot-2.0.0.dev5 → 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"
|
|
@@ -1521,14 +1521,14 @@ wheels = [
|
|
|
1521
1521
|
|
|
1522
1522
|
[[package]]
|
|
1523
1523
|
name = "pybrotlib"
|
|
1524
|
-
version = "1.1.
|
|
1524
|
+
version = "1.1.2"
|
|
1525
1525
|
source = { registry = "https://pypi.org/simple" }
|
|
1526
1526
|
dependencies = [
|
|
1527
1527
|
{ name = "aiomqtt" },
|
|
1528
1528
|
]
|
|
1529
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1529
|
+
sdist = { url = "https://files.pythonhosted.org/packages/57/17/1d260c408935c1145ff73ab6262295f5ce1058489e72f6461618a8aaa8e0/pybrotlib-1.1.2.tar.gz", hash = "sha256:e22746656214a8aab827cc538c50b1b2ff85e4295b3bf8ddf24c853dc6a6cd7b", size = 4998, upload-time = "2026-07-17T11:58:27.012Z" }
|
|
1530
1530
|
wheels = [
|
|
1531
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1531
|
+
{ url = "https://files.pythonhosted.org/packages/97/41/89578a2aca6413d92fbd847b605d1be41940f4c6623bd0536b1bb3da2fab/pybrotlib-1.1.2-py3-none-any.whl", hash = "sha256:b8d96c50e01a55d9aedc0b796bb330420afa129b0d7e156b6b1a1ec023c77cf9", size = 9594, upload-time = "2026-07-17T11:58:26.155Z" },
|
|
1532
1532
|
]
|
|
1533
1533
|
|
|
1534
1534
|
[[package]]
|
|
@@ -1783,7 +1783,7 @@ wheels = [
|
|
|
1783
1783
|
|
|
1784
1784
|
[[package]]
|
|
1785
1785
|
name = "pyobs-brot"
|
|
1786
|
-
version = "2.0.0.
|
|
1786
|
+
version = "2.0.0.dev7"
|
|
1787
1787
|
source = { editable = "." }
|
|
1788
1788
|
dependencies = [
|
|
1789
1789
|
{ name = "astropy" },
|
|
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
|