pyobs-brot 2.0.0.dev6__tar.gz → 2.0.0.dev8__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.dev8}/PKG-INFO +1 -1
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/pyobs_brot/brotroof.py +4 -3
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/pyobs_brot/brottelescope.py +4 -3
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/pyproject.toml +1 -1
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/uv.lock +4 -4
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/.github/workflows/pypi.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/.github/workflows/ruff.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/.gitignore +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/.pre-commit-config.yaml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/.readthedocs.yml +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/LICENSE +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/README.md +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/Makefile +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/make.bat +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/requirements.txt +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/source/_static/pyobs.gif +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/source/conf.py +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/docs/source/index.rst +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/pyobs_brot/__init__.py +0 -0
- {pyobs_brot-2.0.0.dev6 → pyobs_brot-2.0.0.dev8}/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.dev8
|
|
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.dev8"
|
|
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"
|
|
@@ -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.dev8"
|
|
1787
1787
|
source = { editable = "." }
|
|
1788
1788
|
dependencies = [
|
|
1789
1789
|
{ name = "astropy" },
|
|
@@ -1818,7 +1818,7 @@ dev = [
|
|
|
1818
1818
|
|
|
1819
1819
|
[[package]]
|
|
1820
1820
|
name = "pyobs-core"
|
|
1821
|
-
version = "2.0.0.
|
|
1821
|
+
version = "2.0.0.dev29"
|
|
1822
1822
|
source = { registry = "https://pypi.org/simple" }
|
|
1823
1823
|
dependencies = [
|
|
1824
1824
|
{ name = "aiohttp" },
|
|
@@ -1848,9 +1848,9 @@ dependencies = [
|
|
|
1848
1848
|
{ name = "tenacity" },
|
|
1849
1849
|
{ name = "typing-extensions" },
|
|
1850
1850
|
]
|
|
1851
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1851
|
+
sdist = { url = "https://files.pythonhosted.org/packages/3f/78/fa510d74ef173abe05c1d65a6305c68510f323b376f5b6b31b3d6ad6ee25/pyobs_core-2.0.0.dev29.tar.gz", hash = "sha256:af6b3b10429c399ae9b22eddeb17f345823ee7c7b924f13bed900a9782502350", size = 336990, upload-time = "2026-07-18T15:48:44.422Z" }
|
|
1852
1852
|
wheels = [
|
|
1853
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1853
|
+
{ url = "https://files.pythonhosted.org/packages/e4/6d/c9627252e91d8c9b71b8f0535acc46e55f6eca380d01fa0e6da7a76e05a5/pyobs_core-2.0.0.dev29-py3-none-any.whl", hash = "sha256:fa085f0241708fa5efea5f1ab211680ece1bf1597ae4d0f4f6516a63d7e31937", size = 557071, upload-time = "2026-07-18T15:48:43.026Z" },
|
|
1854
1854
|
]
|
|
1855
1855
|
|
|
1856
1856
|
[[package]]
|
|
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
|