pyobs-aravis 2.0.0.dev5__tar.gz → 2.0.0.dev6__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_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/PKG-INFO +1 -1
  2. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/pyobs_aravis/araviscamera.py +9 -6
  3. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/pyproject.toml +1 -1
  4. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/uv.lock +1 -1
  5. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/.github/workflows/pypi.yml +0 -0
  6. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/.github/workflows/ruff.yml +0 -0
  7. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/.pre-commit-config.yaml +0 -0
  8. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/.readthedocs.yml +0 -0
  9. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/CHANGELOG.rst +0 -0
  10. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/LICENSE +0 -0
  11. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/README.md +0 -0
  12. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/Makefile +0 -0
  13. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/make.bat +0 -0
  14. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/requirements.txt +0 -0
  15. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/source/_static/pyobs.gif +0 -0
  16. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/source/conf.py +0 -0
  17. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/docs/source/index.rst +0 -0
  18. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/pyobs_aravis/__init__.py +0 -0
  19. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/pyobs_aravis/aravis.py +0 -0
  20. {pyobs_aravis-2.0.0.dev5 → pyobs_aravis-2.0.0.dev6}/pyobs_aravis/gui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobs-aravis
3
- Version: 2.0.0.dev5
3
+ Version: 2.0.0.dev6
4
4
  Summary: pyobs module for Aravis cameras
5
5
  Author-email: Tim-Oliver Husser <thusser@uni-goettingen.de>
6
6
  License-Expression: MIT
@@ -32,7 +32,7 @@ class AravisCamera(BaseVideo, IExposureTime):
32
32
  BaseVideo.__init__(self, **kwargs)
33
33
  from . import aravis
34
34
 
35
- self._device_name = device
35
+ self._camera_device_name = device
36
36
  self._camera: aravis.Camera | None = None
37
37
  self._settings: dict[str, Any] = {} if settings is None else settings
38
38
  self._camera_lock = asyncio.Lock()
@@ -51,7 +51,7 @@ class AravisCamera(BaseVideo, IExposureTime):
51
51
  await BaseVideo.open(self)
52
52
 
53
53
  ids: list[str] = aravis.get_device_ids() # type: ignore[assignment]
54
- if self._device_name not in ids:
54
+ if self._camera_device_name not in ids:
55
55
  raise ValueError("Could not find given device name in list of available cameras.")
56
56
 
57
57
  await self.activate_camera()
@@ -66,8 +66,8 @@ class AravisCamera(BaseVideo, IExposureTime):
66
66
  """Open camera."""
67
67
  from . import aravis
68
68
 
69
- log.info("Connecting to camera %s...", self._device_name)
70
- self._camera = aravis.Camera(self._device_name) # type: ignore[assignment]
69
+ log.info("Connecting to camera %s...", self._camera_device_name)
70
+ self._camera = aravis.Camera(self._camera_device_name) # type: ignore[assignment]
71
71
  log.info("Connected.")
72
72
 
73
73
  for key, value in self._settings.items():
@@ -80,8 +80,11 @@ class AravisCamera(BaseVideo, IExposureTime):
80
80
  """Close camera."""
81
81
  if self._camera is not None:
82
82
  log.info("Closing camera...")
83
- self._camera.stop_acquisition() # type: ignore[union-attr]
84
- self._camera.shutdown() # type: ignore[union-attr]
83
+ try:
84
+ self._camera.stop_acquisition() # type: ignore[union-attr]
85
+ self._camera.shutdown() # type: ignore[union-attr]
86
+ except Exception:
87
+ log.exception("Error closing camera.")
85
88
  self._camera = None
86
89
 
87
90
  async def _activate_camera(self) -> None:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyobs-aravis"
3
- version = "2.0.0.dev5"
3
+ version = "2.0.0.dev6"
4
4
  description = "pyobs module for Aravis cameras"
5
5
  authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }]
6
6
  requires-python = ">=3.11,<3.14"
@@ -1770,7 +1770,7 @@ wheels = [
1770
1770
 
1771
1771
  [[package]]
1772
1772
  name = "pyobs-aravis"
1773
- version = "2.0.0.dev5"
1773
+ version = "2.0.0.dev6"
1774
1774
  source = { editable = "." }
1775
1775
  dependencies = [
1776
1776
  { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },