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.
Files changed (20) hide show
  1. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/PKG-INFO +1 -1
  2. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brotroof.py +4 -3
  3. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/brottelescope.py +4 -3
  4. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyproject.toml +1 -1
  5. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/uv.lock +4 -4
  6. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.github/workflows/pypi.yml +0 -0
  7. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.github/workflows/ruff.yml +0 -0
  8. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.gitignore +0 -0
  9. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.pre-commit-config.yaml +0 -0
  10. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/.readthedocs.yml +0 -0
  11. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/LICENSE +0 -0
  12. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/README.md +0 -0
  13. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/Makefile +0 -0
  14. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/make.bat +0 -0
  15. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/requirements.txt +0 -0
  16. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/_static/pyobs.gif +0 -0
  17. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/conf.py +0 -0
  18. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/docs/source/index.rst +0 -0
  19. {pyobs_brot-2.0.0.dev5 → pyobs_brot-2.0.0.dev7}/pyobs_brot/__init__.py +0 -0
  20. {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.dev5
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
- log.error(mess)
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
- log.error(mess)
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.dev5"
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.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/b6/34/cb6cc4cee0fc7cd88df27e09535e91599a45c3090fb8ea191cb7702e49ca/pybrotlib-1.1.1.tar.gz", hash = "sha256:170b7fc0c29c3f703fb027b505f54f9b9a7778cbb7ade7a8e3e4803d0d5af660", size = 4988, upload-time = "2026-07-13T13:52:44.913Z" }
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/78/1c/eb4ec2c7523844f29057887b78741ca0f20456d81825877f6dc9a7067e30/pybrotlib-1.1.1-py3-none-any.whl", hash = "sha256:a6cde54aae0833761fecb1044bf749d79f9bdafff4ff478b894825db93b203a6", size = 9575, upload-time = "2026-07-13T13:52:43.97Z" },
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.dev5"
1786
+ version = "2.0.0.dev7"
1787
1787
  source = { editable = "." }
1788
1788
  dependencies = [
1789
1789
  { name = "astropy" },
File without changes