pyobs-aravis 2.0.0.dev17__tar.gz → 2.0.2__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_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/PKG-INFO +3 -3
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/pyobs_aravis/araviscamera.py +14 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/pyproject.toml +3 -3
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/uv.lock +27 -27
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/dependabot.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/workflows/dependabot-automerge.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/workflows/pypi.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/workflows/pyrefly.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/workflows/pytest.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.github/workflows/ruff.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.pre-commit-config.yaml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/.readthedocs.yml +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/CHANGELOG.rst +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/LICENSE +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/README.md +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/Makefile +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/make.bat +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/requirements.txt +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/source/_static/pyobs.gif +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/source/conf.py +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/docs/source/index.rst +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/pyobs_aravis/__init__.py +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/pyobs_aravis/aravis.py +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/pyobs_aravis/gui.py +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/tests/test_araviscamera.py +0 -0
- {pyobs_aravis-2.0.0.dev17 → pyobs_aravis-2.0.2}/tests/test_import.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pyobs-aravis
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: pyobs module for Aravis cameras
|
|
5
5
|
Author-email: Tim-Oliver Husser <thusser@uni-goettingen.de>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Requires-Python: >=3.11
|
|
9
9
|
Requires-Dist: numpy<3,>=2.2.5
|
|
10
|
-
Requires-Dist: pyobs-core<3,>=2.
|
|
10
|
+
Requires-Dist: pyobs-core<3,>=2.2.0
|
|
11
11
|
Provides-Extra: gui
|
|
12
|
-
Requires-Dist: pyobs-core[gui]<3,>=2.
|
|
12
|
+
Requires-Dist: pyobs-core[gui]<3,>=2.2.0; extra == 'gui'
|
|
13
13
|
Requires-Dist: qasync>=0.28.0; extra == 'gui'
|
|
@@ -6,8 +6,10 @@ from collections.abc import Callable
|
|
|
6
6
|
from typing import Any
|
|
7
7
|
|
|
8
8
|
import numpy.typing as npt
|
|
9
|
+
from pyobs.images import Image
|
|
9
10
|
from pyobs.interfaces import ExposureTimeState, IExposureTime
|
|
10
11
|
from pyobs.modules.camera import BaseVideo
|
|
12
|
+
from pyobs.utils.enums import ImageType
|
|
11
13
|
|
|
12
14
|
log = logging.getLogger(__name__)
|
|
13
15
|
|
|
@@ -83,6 +85,18 @@ class AravisCamera(BaseVideo, IExposureTime):
|
|
|
83
85
|
await BaseVideo.close(self)
|
|
84
86
|
await self._deactivate_camera()
|
|
85
87
|
|
|
88
|
+
async def _finish_image(self, image: Image, broadcast: bool, image_type: ImageType) -> tuple[Image, str]:
|
|
89
|
+
"""Add device identity/settings headers, then finish up as usual (BaseVideo has no
|
|
90
|
+
per-frame header hook of its own, so this is the earliest point after add_fits_headers()
|
|
91
|
+
and before the image is serialized to bytes)."""
|
|
92
|
+
image.header["INSTRUME"] = (self._camera_device_name, "Name of instrument")
|
|
93
|
+
for key, value in self._settings.items():
|
|
94
|
+
if key.lower() == "gain":
|
|
95
|
+
image.header["GAIN"] = (value, "Gain used for exposure")
|
|
96
|
+
elif key.lower() == "triggermode":
|
|
97
|
+
image.header["TRIGMODE"] = (value, "Trigger mode used for exposure")
|
|
98
|
+
return await super()._finish_image(image, broadcast, image_type)
|
|
99
|
+
|
|
86
100
|
def _open_camera(self) -> None:
|
|
87
101
|
"""Open camera."""
|
|
88
102
|
from . import aravis
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyobs-aravis"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
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"
|
|
7
7
|
license = "MIT"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"numpy>=2.2.5,<3",
|
|
10
|
-
"pyobs-core>=2.
|
|
10
|
+
"pyobs-core>=2.2.0,<3",
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
[project.optional-dependencies]
|
|
14
14
|
gui = [
|
|
15
|
-
"pyobs-core[gui]>=2.
|
|
15
|
+
"pyobs-core[gui]>=2.2.0,<3",
|
|
16
16
|
"qasync>=0.28.0",
|
|
17
17
|
]
|
|
18
18
|
|
|
@@ -2320,7 +2320,7 @@ wheels = [
|
|
|
2320
2320
|
|
|
2321
2321
|
[[package]]
|
|
2322
2322
|
name = "pyobs-aravis"
|
|
2323
|
-
version = "2.0.
|
|
2323
|
+
version = "2.0.2"
|
|
2324
2324
|
source = { editable = "." }
|
|
2325
2325
|
dependencies = [
|
|
2326
2326
|
{ name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },
|
|
@@ -2347,8 +2347,8 @@ dev = [
|
|
|
2347
2347
|
[package.metadata]
|
|
2348
2348
|
requires-dist = [
|
|
2349
2349
|
{ name = "numpy", specifier = ">=2.2.5,<3" },
|
|
2350
|
-
{ name = "pyobs-core", specifier = ">=2.
|
|
2351
|
-
{ name = "pyobs-core", extras = ["gui"], marker = "extra == 'gui'", specifier = ">=2.
|
|
2350
|
+
{ name = "pyobs-core", specifier = ">=2.2.0,<3" },
|
|
2351
|
+
{ name = "pyobs-core", extras = ["gui"], marker = "extra == 'gui'", specifier = ">=2.2.0,<3" },
|
|
2352
2352
|
{ name = "qasync", marker = "extra == 'gui'", specifier = ">=0.28.0" },
|
|
2353
2353
|
]
|
|
2354
2354
|
provides-extras = ["gui"]
|
|
@@ -2365,7 +2365,7 @@ dev = [
|
|
|
2365
2365
|
|
|
2366
2366
|
[[package]]
|
|
2367
2367
|
name = "pyobs-core"
|
|
2368
|
-
version = "2.
|
|
2368
|
+
version = "2.2.0"
|
|
2369
2369
|
source = { registry = "https://pypi.org/simple" }
|
|
2370
2370
|
dependencies = [
|
|
2371
2371
|
{ name = "aiohttp" },
|
|
@@ -2397,9 +2397,9 @@ dependencies = [
|
|
|
2397
2397
|
{ name = "tenacity" },
|
|
2398
2398
|
{ name = "typing-extensions" },
|
|
2399
2399
|
]
|
|
2400
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2400
|
+
sdist = { url = "https://files.pythonhosted.org/packages/7b/77/f145aa80dcc2a3813576609f9a92bd565a9db9d61777f9cc124afb1878cc/pyobs_core-2.2.0.tar.gz", hash = "sha256:adede5c3c12722565e5ccb32f5fe49397dc14e74674c6778482d40f81ca300e1", size = 395720, upload-time = "2026-09-01T11:47:40.797Z" }
|
|
2401
2401
|
wheels = [
|
|
2402
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2402
|
+
{ url = "https://files.pythonhosted.org/packages/9c/84/5cf38ef1f504b0c7e76e38a84d7f721b9b4cdb68f389f1263591c75324fc/pyobs_core-2.2.0-py3-none-any.whl", hash = "sha256:9b14d86efff1360ee00d4cfcbf4a89ab6f8089f9c60de0d7e404a239da7a524d", size = 624091, upload-time = "2026-09-01T11:47:39.082Z" },
|
|
2403
2403
|
]
|
|
2404
2404
|
|
|
2405
2405
|
[package.optional-dependencies]
|
|
@@ -2726,27 +2726,27 @@ wheels = [
|
|
|
2726
2726
|
|
|
2727
2727
|
[[package]]
|
|
2728
2728
|
name = "ruff"
|
|
2729
|
-
version = "0.16.
|
|
2730
|
-
source = { registry = "https://pypi.org/simple" }
|
|
2731
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2732
|
-
wheels = [
|
|
2733
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2734
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2735
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2736
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2737
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2738
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2739
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2740
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2741
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2742
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2743
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2744
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2745
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2746
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2747
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2748
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2749
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2729
|
+
version = "0.16.5"
|
|
2730
|
+
source = { registry = "https://pypi.org/simple" }
|
|
2731
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f3/85/c8e12473c93018f92d19dd988a294202e1c27426c47ec4de53ffb847b8d8/ruff-0.16.5.tar.gz", hash = "sha256:1b88500f9ffbcab3dedb0082c9f9492e91ec3d618aac1236a3e0189938f7040b", size = 4912003, upload-time = "2026-08-27T16:34:18.258Z" }
|
|
2732
|
+
wheels = [
|
|
2733
|
+
{ url = "https://files.pythonhosted.org/packages/c6/b6/77c90a970fe2dae17a723acbd011043ea97c98d7deacccefdc4ba74ec512/ruff-0.16.5-py3-none-linux_armv6l.whl", hash = "sha256:12e5f673e774c35fbb62f288809c7653b73445f8ecec6b6063fd6ea3521aa14b", size = 10011941, upload-time = "2026-08-27T16:33:41.287Z" },
|
|
2734
|
+
{ url = "https://files.pythonhosted.org/packages/4b/46/6cf67cf6411885a1d6f7f6d801682f155536a85176d10b605e2ceffed8bd/ruff-0.16.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:eda58a5802de40e7ed5b32b64e0b32539338cc6fcd2c78f61e3ad6a0d79f51c3", size = 10204049, upload-time = "2026-08-27T16:33:44.056Z" },
|
|
2735
|
+
{ url = "https://files.pythonhosted.org/packages/46/fd/c8720ca7a090abf0c2fef4abe8a5ef6e5127ed15196d8886ff75a2b370e2/ruff-0.16.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c5ae9a7b9a8875131f40f8fe967cc86abf899779efd663cb7ce3d572d01da7eb", size = 9809037, upload-time = "2026-08-27T16:33:46.257Z" },
|
|
2736
|
+
{ url = "https://files.pythonhosted.org/packages/43/45/a684caacdedaca180f52bacccc40bf0789d2c5a7c75f25324853e9eaedb5/ruff-0.16.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7b719b0a1f4d59710d283ab2965f621684a108a9e41da622e3b23f0326cd0025", size = 9964129, upload-time = "2026-08-27T16:33:48.352Z" },
|
|
2737
|
+
{ url = "https://files.pythonhosted.org/packages/9e/f2/5d2bcdaca6b5b93d1b4dfc166cd2aebf7680143a1b38a28759df13a94d31/ruff-0.16.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2298f2780ed1be0c5cb1361e32ab7b1467f3cce7dabe101d2210a314f2fe42e9", size = 9821518, upload-time = "2026-08-27T16:33:50.57Z" },
|
|
2738
|
+
{ url = "https://files.pythonhosted.org/packages/aa/ff/011cce29accf9257d5974145b733fc653a37985ed6825413a3987cefbfe0/ruff-0.16.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:258f29035a2dd021e7861e631b227a5b3f14e50c1184c9a6a122c5f4576154d7", size = 10534835, upload-time = "2026-08-27T16:33:52.522Z" },
|
|
2739
|
+
{ url = "https://files.pythonhosted.org/packages/d7/5a/f0cf109bada9bba0e96c90c21c9f9251803f57225c32d293327a03c710d6/ruff-0.16.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b9a4f0432966834019c74d1b7e5c51224305d7713f3d7faf3e7451f1a3be3cde", size = 11252550, upload-time = "2026-08-27T16:33:54.521Z" },
|
|
2740
|
+
{ url = "https://files.pythonhosted.org/packages/63/4d/1d481aaea2046c6a7ed7c291f9004c669cce3c087b6b376ed5b08271e3fe/ruff-0.16.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b5eb3a8c3d0ade9cea42b591fd530368e8798380e30e0a308b85a5cf718f09ea", size = 10777949, upload-time = "2026-08-27T16:33:56.88Z" },
|
|
2741
|
+
{ url = "https://files.pythonhosted.org/packages/ee/34/ee245ca55f64443233034b3d02b03236b19242004281247c079390b7facd/ruff-0.16.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ef0f69e191a13a3c9816f63163c88790cb12cd157bbbb384e9c44745702ab105", size = 10311656, upload-time = "2026-08-27T16:33:59.12Z" },
|
|
2742
|
+
{ url = "https://files.pythonhosted.org/packages/a7/4d/c33a333e341c0a2b96c715b52d89a606f5a34cd4ac493cd9b8d0187186b8/ruff-0.16.5-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0eeab41fbea2c42f98dfb9822cdccda9d24ba38d49f6dc945b5c236d48f0ef29", size = 10532125, upload-time = "2026-08-27T16:34:01.166Z" },
|
|
2743
|
+
{ url = "https://files.pythonhosted.org/packages/30/e1/a64cef78b40192497bb98a27a8aa8f2c98ee9ee15bc97f7712d94ef32937/ruff-0.16.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:f0768e9df4300713fff30733c87575f68b6f1d8de41184e505b7fdd9c0c95eaf", size = 10097648, upload-time = "2026-08-27T16:34:03.16Z" },
|
|
2744
|
+
{ url = "https://files.pythonhosted.org/packages/cc/4e/4cdc9ed3c3e109d2f71e62572a37457298d7bc7501ec3138babb7ed32bbd/ruff-0.16.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:95cc70cdc7aa80c338de356279d2adbeb2de0f520b9ecd8aba75b94e95e02f91", size = 9829344, upload-time = "2026-08-27T16:34:05.134Z" },
|
|
2745
|
+
{ url = "https://files.pythonhosted.org/packages/39/4a/31ed35ce31729955fc583ee0d176d6e784c1290cb0b0a75cb2134c1ab72a/ruff-0.16.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d185c8398ded1bfd91c0c2cb258346307571eccc473a8490af8c3977399c384a", size = 10277117, upload-time = "2026-08-27T16:34:07.425Z" },
|
|
2746
|
+
{ url = "https://files.pythonhosted.org/packages/a8/a0/60356d86687b4b666d593df213f4dc3041750d024cb7bf2cfa81cfd65c2e/ruff-0.16.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:fb8e3a3c4c6a784150a7ced53b015f4b253fc2bf97a610886419ead64b4756ef", size = 10711653, upload-time = "2026-08-27T16:34:09.712Z" },
|
|
2747
|
+
{ url = "https://files.pythonhosted.org/packages/ed/20/656d67f5b25ca9bda4e02b1de25867b2954e1d19e03648060f167ad0f4cc/ruff-0.16.5-py3-none-win32.whl", hash = "sha256:288b0a5f080492fe5635db849f9e2e84aa3cce7b7f0e955997d416c507c76a26", size = 10034250, upload-time = "2026-08-27T16:34:11.8Z" },
|
|
2748
|
+
{ url = "https://files.pythonhosted.org/packages/5b/42/ee8e68a207b9127fcde6c3d7e197def432f346cb1af159e1fa14ca0d1cdc/ruff-0.16.5-py3-none-win_amd64.whl", hash = "sha256:ddc6385fb2137f616357ca03d6c74f4be987f80fed4008566b754f6032b8546f", size = 10516714, upload-time = "2026-08-27T16:34:13.963Z" },
|
|
2749
|
+
{ url = "https://files.pythonhosted.org/packages/73/e3/7df5a396e445b9ba49ce9a9437439a4d80042c61c0ade199abf8d16de1ac/ruff-0.16.5-py3-none-win_arm64.whl", hash = "sha256:a64abe90968719b851bb7cedffaa8753fbdbdadab483089682db623f3edc587e", size = 10391564, upload-time = "2026-08-27T16:34:16.064Z" },
|
|
2750
2750
|
]
|
|
2751
2751
|
|
|
2752
2752
|
[[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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|