pyobs-asi 2.0.0.dev7__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_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/PKG-INFO +3 -3
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/pyobs_asi/asicamera.py +11 -3
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/pyproject.toml +3 -3
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/uv.lock +27 -27
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/dependabot.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/workflows/dependabot-automerge.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/workflows/pypi.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/workflows/pyrefly.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/workflows/pytest.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.github/workflows/ruff.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.pre-commit-config.yaml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/.readthedocs.yml +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/CHANGELOG.rst +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/LICENSE +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/README.md +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/Makefile +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/make.bat +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/requirements.txt +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/source/_static/pyobs.gif +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/source/conf.py +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/docs/source/index.rst +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/pyobs_asi/__init__.py +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/pyobs_asi/gui.py +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/tests/test_asicamera.py +0 -0
- {pyobs_asi-2.0.0.dev7 → pyobs_asi-2.0.2}/tests/test_import.py +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pyobs-asi
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: pyobs model for ASI 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.0.0
|
|
10
|
+
Requires-Dist: pyobs-core<3,>=2.0.0
|
|
11
11
|
Requires-Dist: zwoasi>=0.2.0
|
|
12
12
|
Provides-Extra: gui
|
|
13
|
-
Requires-Dist: pyobs-core[gui]<3,>=2.0.0
|
|
13
|
+
Requires-Dist: pyobs-core[gui]<3,>=2.0.0; extra == 'gui'
|
|
14
14
|
Requires-Dist: qasync>=0.28.0; extra == 'gui'
|
|
@@ -198,7 +198,9 @@ class AsiCamera(BaseCamera, IWindow, IBinning, IImageFormat, IGain, ITemperature
|
|
|
198
198
|
for key, val in self._camera_info.items():
|
|
199
199
|
log.info(" - %s: %s", key, val)
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
await BaseCamera.open(self)
|
|
202
|
+
|
|
203
|
+
# publish capabilities
|
|
202
204
|
await self.comm.set_capabilities(
|
|
203
205
|
IWindow,
|
|
204
206
|
WindowCapabilities(
|
|
@@ -215,8 +217,6 @@ class AsiCamera(BaseCamera, IWindow, IBinning, IImageFormat, IGain, ITemperature
|
|
|
215
217
|
)
|
|
216
218
|
await self.comm.set_capabilities(IImageFormat, ImageFormatCapabilities(image_formats=list(FORMATS.keys())))
|
|
217
219
|
|
|
218
|
-
await BaseCamera.open(self)
|
|
219
|
-
|
|
220
220
|
# publish initial states
|
|
221
221
|
await self.comm.set_state(IWindow, WindowState(*self._window))
|
|
222
222
|
await self.comm.set_state(IBinning, BinningState(x=self._binning, y=self._binning))
|
|
@@ -396,6 +396,7 @@ class AsiCamera(BaseCamera, IWindow, IBinning, IImageFormat, IGain, ITemperature
|
|
|
396
396
|
|
|
397
397
|
image.header["DET-PIXL"] = (self._camera_info["PixelSize"] / 1000.0, "Size of detector pixels (square) [mm]")
|
|
398
398
|
image.header["DET-GAIN"] = (self._camera_info["ElecPerADU"] * self._gain, "Detector gain [e-/ADU]")
|
|
399
|
+
image.header["OFFSET"] = (self._gain_offset, "Black-level offset used for exposure")
|
|
399
400
|
|
|
400
401
|
if image_format in [asi.ASI_IMG_RAW8, asi.ASI_IMG_RAW16]:
|
|
401
402
|
image.header["BAYERPAT"] = image.header["COLORTYP"] = ("GBRG", "Bayer pattern for colors")
|
|
@@ -484,6 +485,13 @@ class AsiCoolCamera(AsiCamera, ICooling):
|
|
|
484
485
|
enabled, setpoint, power = await self._get_cooling_status()
|
|
485
486
|
await self.comm.set_state(ICooling, CoolingState(setpoint=setpoint, power=int(power), enabled=enabled))
|
|
486
487
|
|
|
488
|
+
async def add_custom_fits_headers(self, image: Image) -> None:
|
|
489
|
+
"""Add cooling headers on top of AsiCamera's."""
|
|
490
|
+
await super().add_custom_fits_headers(image)
|
|
491
|
+
_, setpoint, power = await self._get_cooling_status()
|
|
492
|
+
image.header["DET-COOL"] = (int(power), "Cooler power [percent]")
|
|
493
|
+
image.header["DET-TSET"] = (setpoint, "Cooler setpoint [C]")
|
|
494
|
+
|
|
487
495
|
async def _get_cooling_status(self) -> tuple[bool, float, float]:
|
|
488
496
|
if self._camera is None:
|
|
489
497
|
raise ValueError("No camera initialised.")
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyobs-asi"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
description = "pyobs model for ASI 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.0.0
|
|
10
|
+
"pyobs-core>=2.0.0,<3",
|
|
11
11
|
"zwoasi>=0.2.0",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[project.optional-dependencies]
|
|
15
15
|
gui = [
|
|
16
|
-
"pyobs-core[gui]>=2.0.0
|
|
16
|
+
"pyobs-core[gui]>=2.0.0,<3",
|
|
17
17
|
"qasync>=0.28.0",
|
|
18
18
|
]
|
|
19
19
|
|
|
@@ -2320,7 +2320,7 @@ wheels = [
|
|
|
2320
2320
|
|
|
2321
2321
|
[[package]]
|
|
2322
2322
|
name = "pyobs-asi"
|
|
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'" },
|
|
@@ -2348,8 +2348,8 @@ dev = [
|
|
|
2348
2348
|
[package.metadata]
|
|
2349
2349
|
requires-dist = [
|
|
2350
2350
|
{ name = "numpy", specifier = ">=2.2.5,<3" },
|
|
2351
|
-
{ name = "pyobs-core", specifier = ">=2.0.0
|
|
2352
|
-
{ name = "pyobs-core", extras = ["gui"], marker = "extra == 'gui'", specifier = ">=2.0.0
|
|
2351
|
+
{ name = "pyobs-core", specifier = ">=2.0.0,<3" },
|
|
2352
|
+
{ name = "pyobs-core", extras = ["gui"], marker = "extra == 'gui'", specifier = ">=2.0.0,<3" },
|
|
2353
2353
|
{ name = "qasync", marker = "extra == 'gui'", specifier = ">=0.28.0" },
|
|
2354
2354
|
{ name = "zwoasi", specifier = ">=0.2.0" },
|
|
2355
2355
|
]
|
|
@@ -2367,7 +2367,7 @@ dev = [
|
|
|
2367
2367
|
|
|
2368
2368
|
[[package]]
|
|
2369
2369
|
name = "pyobs-core"
|
|
2370
|
-
version = "2.
|
|
2370
|
+
version = "2.8.0"
|
|
2371
2371
|
source = { registry = "https://pypi.org/simple" }
|
|
2372
2372
|
dependencies = [
|
|
2373
2373
|
{ name = "aiohttp" },
|
|
@@ -2399,9 +2399,9 @@ dependencies = [
|
|
|
2399
2399
|
{ name = "tenacity" },
|
|
2400
2400
|
{ name = "typing-extensions" },
|
|
2401
2401
|
]
|
|
2402
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2402
|
+
sdist = { url = "https://files.pythonhosted.org/packages/4b/e0/d487ffde9944cf5e0113fc20aef8219827dab814fac3e98afa5c6f91524a/pyobs_core-2.8.0.tar.gz", hash = "sha256:aebba83565c93e3e175d40755abd08d0e85a3c4be120f312423bd3681f5ac702", size = 410851, upload-time = "2026-09-04T12:36:25.116Z" }
|
|
2403
2403
|
wheels = [
|
|
2404
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2404
|
+
{ url = "https://files.pythonhosted.org/packages/d3/31/4a628c72fbb21fdd65555e8d0555a192019d1ea951e0d66fda11b395560f/pyobs_core-2.8.0-py3-none-any.whl", hash = "sha256:86a5c290a704a81364e0b9db1a13f02b27da4d3c60c85842acb420e0b7e3d57e", size = 640685, upload-time = "2026-09-04T12:36:23.367Z" },
|
|
2405
2405
|
]
|
|
2406
2406
|
|
|
2407
2407
|
[package.optional-dependencies]
|
|
@@ -2728,27 +2728,27 @@ wheels = [
|
|
|
2728
2728
|
|
|
2729
2729
|
[[package]]
|
|
2730
2730
|
name = "ruff"
|
|
2731
|
-
version = "0.16.
|
|
2732
|
-
source = { registry = "https://pypi.org/simple" }
|
|
2733
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2734
|
-
wheels = [
|
|
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/
|
|
2750
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2751
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2731
|
+
version = "0.16.6"
|
|
2732
|
+
source = { registry = "https://pypi.org/simple" }
|
|
2733
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a4/7c/6adb35d70e7c027e308274557901c7e00fb3407750faf3620c184ae058cb/ruff-0.16.6.tar.gz", hash = "sha256:dcf8a73d2ff77e99dde91244b4da16feba7f14e6beeb4015dee7c5a909e99050", size = 4921251, upload-time = "2026-09-03T16:57:29.037Z" }
|
|
2734
|
+
wheels = [
|
|
2735
|
+
{ url = "https://files.pythonhosted.org/packages/a4/28/9cc1b79639e284ec103f43c88c644db4eb58cbd0ea1ca11f1193435369ac/ruff-0.16.6-py3-none-linux_armv6l.whl", hash = "sha256:61c368c26bf8e973e5ab14a2772de587bc068ea3f9a277f673380749b4898fb8", size = 10015638, upload-time = "2026-09-03T16:56:40.986Z" },
|
|
2736
|
+
{ url = "https://files.pythonhosted.org/packages/71/11/627d342ef727ea7794edf74fe23d60a074b02c3acc2e9436684e782286ca/ruff-0.16.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:ecf4f068e2e123e43a26e9db4e19524cc56563912404e83bbfca375757e45a32", size = 10220762, upload-time = "2026-09-03T16:56:44.681Z" },
|
|
2737
|
+
{ url = "https://files.pythonhosted.org/packages/43/d9/b75668ce41e4c8d073d18d6d08672ba6906ce45d5c06ea4fdb2e84ce3853/ruff-0.16.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:99b62ea33baf130f50368798d841f0d95527b6d817bf31817b65dd058f1d314c", size = 9835082, upload-time = "2026-09-03T16:56:47.142Z" },
|
|
2738
|
+
{ url = "https://files.pythonhosted.org/packages/99/97/123ab10b05cde889c107c20f5a9774955104b5552796a2a8584b089ae8eb/ruff-0.16.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fbf89013f2bb3f6835a6038ff658dc8a1b38c98dc8e724b964168ad4e881876", size = 9949304, upload-time = "2026-09-03T16:56:49.813Z" },
|
|
2739
|
+
{ url = "https://files.pythonhosted.org/packages/3e/58/a4a2c59dd2e5b85929c912d9cac3056eb9ee8c7e75e9b9fe3e109174966b/ruff-0.16.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56a67065e22efa6bc4d498299d3bb06c0c90aace8fac2068b5a12f9dc4d8d51d", size = 9840612, upload-time = "2026-09-03T16:56:52.368Z" },
|
|
2740
|
+
{ url = "https://files.pythonhosted.org/packages/61/6a/ff8c8626a786c4f49d48ced4a752dadbca65f5263005f9c2416578194694/ruff-0.16.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e25cc89174874b176a157e4428d66761c2c0c006654419bf384f967f361ff1b1", size = 10543465, upload-time = "2026-09-03T16:56:55.089Z" },
|
|
2741
|
+
{ url = "https://files.pythonhosted.org/packages/ad/bb/c47535923365f337b82e28192e4e9eef2176511007cfd99a62fc22df5dad/ruff-0.16.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0700580ed5303723cb3c11c2f1d2a8913ce77b7ea86646dddb887f5417a9ba70", size = 11267576, upload-time = "2026-09-03T16:56:57.791Z" },
|
|
2742
|
+
{ url = "https://files.pythonhosted.org/packages/ba/50/e5119a5212b5cd63b51e1f4b25e7bd636a6668fc069a3160b108ad7e3c16/ruff-0.16.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15f1d0b6e165a6e56567befb6629f8209271311d990bae0f37e6d065035ef5f3", size = 10781993, upload-time = "2026-09-03T16:57:00.666Z" },
|
|
2743
|
+
{ url = "https://files.pythonhosted.org/packages/8b/98/083d8b4ef3c51a0d19db84367791cbe9f44e4b53343d19dfa83556e1cd9a/ruff-0.16.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d72c591a96986ee4268860e2b7235082129ca5e4cb9cbba653a4b57c11893757", size = 10317748, upload-time = "2026-09-03T16:57:03.428Z" },
|
|
2744
|
+
{ url = "https://files.pythonhosted.org/packages/9a/29/68f7ff2c5ad95f19f00627ac2de95644e25fe47371ea60b2db1fd952315e/ruff-0.16.6-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:65a006baa18f33324325814c864daef03541d51564b98c517610ea756ab7003e", size = 10540096, upload-time = "2026-09-03T16:57:06.182Z" },
|
|
2745
|
+
{ url = "https://files.pythonhosted.org/packages/c4/f9/79a8f6de85968641d68a7863aeec577551924ef066a990a48ff93167beab/ruff-0.16.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:cd02a7bf1a21a8735228a3e8c95a9dc5cf86bd2a52194f4aaae2a5755b4de0f4", size = 10100494, upload-time = "2026-09-03T16:57:09.194Z" },
|
|
2746
|
+
{ url = "https://files.pythonhosted.org/packages/d9/e8/b81a22d9b90c00b892ccf2fa2ac36fa95de4c13ab85aea3e73795cfe4651/ruff-0.16.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:31b36f1e5ad85e0737f09d2be4e512e2e283583c14015da3b9dc07359ac0fc88", size = 9843663, upload-time = "2026-09-03T16:57:12.168Z" },
|
|
2747
|
+
{ url = "https://files.pythonhosted.org/packages/39/aa/54f516ec5e5a11c4afdceb1c454ebb054ffb96e4f4a1705580b4346abd35/ruff-0.16.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:61029b4ab4aa723fd3064fab96b1d814492596bf0c792679fffcbde1e1679953", size = 10282461, upload-time = "2026-09-03T16:57:15.077Z" },
|
|
2748
|
+
{ url = "https://files.pythonhosted.org/packages/52/0b/38d0aa8aa32372b96dc44f97b22e576c4147808271aab7b2cb1e353d4445/ruff-0.16.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:9ac8998457832c2061709d900856b7ad271dace0cb41f346588d540162bfa718", size = 10728808, upload-time = "2026-09-03T16:57:17.797Z" },
|
|
2749
|
+
{ url = "https://files.pythonhosted.org/packages/5e/e5/9e274e24eeb027640ffc7442f21239f16d17f47acec15ae34f32e03a5c79/ruff-0.16.6-py3-none-win32.whl", hash = "sha256:0b87d9d16fcb63e8018423ca1d50b7260f15cb2da33e30db4baad4183a948c25", size = 10049212, upload-time = "2026-09-03T16:57:20.55Z" },
|
|
2750
|
+
{ url = "https://files.pythonhosted.org/packages/22/31/72472449414223ed1a2da236b992adbb1a2ae59e34794574810f60ce068e/ruff-0.16.6-py3-none-win_amd64.whl", hash = "sha256:10d21c51c3495d8eaea7b703a16592117ea6eb1d649e36335aa965ff1173eb39", size = 10556402, upload-time = "2026-09-03T16:57:23.501Z" },
|
|
2751
|
+
{ url = "https://files.pythonhosted.org/packages/fc/07/d781f8f8e1ac24bef9f3269cf62ffb1407ca24c3a8f12e5e22874f90528c/ruff-0.16.6-py3-none-win_arm64.whl", hash = "sha256:7a976c79b958f94e50a022a19f0f8c87387448020935ec14fc74331bd0a7f2c5", size = 10412850, upload-time = "2026-09-03T16:57:26.416Z" },
|
|
2752
2752
|
]
|
|
2753
2753
|
|
|
2754
2754
|
[[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
|